diff --git a/sflphone-client-kde/src/SFLPhoneTray.cpp b/sflphone-client-kde/src/SFLPhoneTray.cpp index a1a0af965ff8fed0157227a5d0cbcf18963a3beb..6b8b4763bc06b730c74ac6247650cf07821b46a8 100644 --- a/sflphone-client-kde/src/SFLPhoneTray.cpp +++ b/sflphone-client-kde/src/SFLPhoneTray.cpp @@ -61,48 +61,3 @@ void SFLPhoneTray::setupActions() { qDebug() << "setupActions"; } - -/*void SFLPhone::putForeground() -{ - activateWindow(); - hide(); - activateWindow(); - show(); - activateWindow(); -} -*/ - -/*void SFLPhone::trayIconSignal() -{ - if(! parentWidget()->isActiveWindow()) - { - setIcon(QIcon(ICON_TRAY_NOTIF)); - iconChanged = true; - } -}*/ - -/* -void SFLPhone::on_trayIcon_activated(KSystemTrayIcon::ActivationReason reason) -{ - qDebug() << "on_trayIcon_activated"; - switch (reason) { - case KSystemTrayIcon::Trigger: - case KSystemTrayIcon::DoubleClick: - qDebug() << "Tray icon clicked."; - if(isActiveWindow()) - { - qDebug() << "isactive -> hide()"; - hide(); - } - else - { - qDebug() << "isnotactive -> show()"; - putForeground(); - } - break; - default: - qDebug() << "Tray icon activated with unknown reason."; - break; - } -} -*/ diff --git a/sflphone-client-kde/src/SFLPhoneTray.h b/sflphone-client-kde/src/SFLPhoneTray.h index 054d9ae9235cb025b03ca807b5d43280442c5115..35a5f09fae8e1e4210146ea256e2caccc689ea8a 100644 --- a/sflphone-client-kde/src/SFLPhoneTray.h +++ b/sflphone-client-kde/src/SFLPhoneTray.h @@ -41,11 +41,6 @@ public: private: QMenu *trayIconMenu; bool initialized_; -/* -private slots: - void activated(KSystemTrayIcon::ActivationReason reason); - void messageClicked();*/ - void trayIconSignal(); }; #endif // SFLPHONETRAY_H