connect(c_tray_icon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason)));
void sMainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason){ switch (reason) { case QSystemTrayIcon::DoubleClick: { if (isMinimized()) showNormal(); activateWindow(); break; } default: break; }}