[Bug 88806] systray icon similar to kmail would be very helpful
Alex Alexandrov
swined at gmail.com
Thu Apr 14 09:58:20 BST 2011
https://bugs.kde.org/show_bug.cgi?id=88806
--- Comment #7 from Alex Alexandrov <swined gmail com> 2011-04-14 10:56:11 ---
oops, missed one line there...
diff --git a/knode/knode.cpp b/knode/knode.cpp
index 55fddf7..7d34795 100644
--- a/knode/knode.cpp
+++ b/knode/knode.cpp
@@ -39,6 +39,10 @@
KNMainWindow::KNMainWindow( QWidget* parent )
: KXmlGuiWindow( parent )
{
+ //create static tray icon
+ tray = new KSystemTrayIcon("knode", this);
+ tray->show();
+
//setupStatusBar();
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
diff --git a/knode/knode.h b/knode/knode.h
index 22f9408..5a398ab 100644
--- a/knode/knode.h
+++ b/knode/knode.h
@@ -17,6 +17,7 @@
#include <kxmlguiwindow.h>
#include <kdialog.h>
+#include <ksystemtrayicon.h>
#include "resource.h"
#include <qglobal.h>
@@ -57,6 +58,7 @@ private:
StatusbarProgressWidget *mLittleProgress;
ProgressDialog *mProgressDialog;
KSqueezedTextLabel *mStatusMsgLabel;
+ KSystemTrayIcon *tray;
private slots:
void slotShowStatusMsg( const QString& );
};
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list