[Bug 88806] systray icon similar to kmail would be very helpful

Alex Alexandrov swined at gmail.com
Thu Apr 14 09:48:30 BST 2011


https://bugs.kde.org/show_bug.cgi?id=88806


Alex Alexandrov <swined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |swined at gmail.com




--- Comment #6 from Alex Alexandrov <swined gmail com>  2011-04-14 10:48:21 ---
just fixed this for the latest kde4 trunk:

diff --git a/knode/knode.cpp b/knode/knode.cpp
index 55fddf7..b7e6e55 100644
--- a/knode/knode.cpp
+++ b/knode/knode.cpp
@@ -39,6 +39,11 @@
 KNMainWindow::KNMainWindow( QWidget* parent )
   : KXmlGuiWindow( parent )
 {
+  //create static tray icon
+  QPixmap 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