From 64e738df4bcfe0c76b426a95dcdd29aec1be2eb3 Mon Sep 17 00:00:00 2001 From: Mathieu Leduc-Hamel <mlhamel@arak4.(none)> Date: Mon, 1 Feb 2010 17:08:32 -0500 Subject: [PATCH] cleaning the code --- sflphone-client-kde/src/SFLPhoneTray.cpp | 45 ------------------------ sflphone-client-kde/src/SFLPhoneTray.h | 5 --- 2 files changed, 50 deletions(-) diff --git a/sflphone-client-kde/src/SFLPhoneTray.cpp b/sflphone-client-kde/src/SFLPhoneTray.cpp index a1a0af965f..6b8b4763bc 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 054d9ae923..35a5f09fae 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 -- GitLab