[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-accessibility
Subject:    [Kde-accessibility]
From:       Gunnar Schmi Dt <gunnar () schmi-dt ! de>
Date:       2003-08-22 18:15:39
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have produced a patch that allows KMouseTool to dock into the system tray. 

The patch uses the KSystemTray class in order to solve this goal. As it only 
add an extra widget, it cannot hurt when there is no system tray available. 

Is it OK to commit this patch? (If I do not hear anything I will commit it 
anyway on Monday.)

Gunnar Schmi Dt
- -- 
Co-maintainer of the KDE Accessibility Project
Maintainer of the kdeaccessibility package
http://accessibility.kde.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/Rl3TsxZ93p+gHn4RAmExAKCQAfUFC+bgb3Xb8KmA1LTqPGaTYQCg7vyQ
aUkINt1/olN2or6vI0MBRUU=
=+v+q
-----END PGP SIGNATURE-----

["kmousetool.systemtray.diff" (text/x-diff)]

? diff
Index: kmousetool.cpp
===================================================================
RCS file: /home/kde/kdeaccessibility/kmousetool/kmousetool/kmousetool.cpp,v
retrieving revision 1.8
diff -u -p -r1.8 kmousetool.cpp
--- kmousetool.cpp	17 May 2003 09:03:55 -0000	1.8
+++ kmousetool.cpp	22 Aug 2003 15:48:07 -0000
@@ -43,7 +43,8 @@
 #include <qlineedit.h>
 #include <qlabel.h>
 #include <qcheckbox.h>
-
+#include <ksystemtray.h> 
+#include <kiconloader.h>
 
 #include <arts/soundserver.h>
 #include <kwin.h>		// for kwin::info
@@ -394,6 +395,10 @@ KMouseTool::KMouseTool(QWidget *parent, 
 		mousetool_just_started = true;
 
     startTimer(100);
+    QPixmap icon = KGlobal::iconLoader()->loadIcon("kmousetool", KIcon::Small);
+    KSystemTray *trayIcon = new KSystemTray (this, "systemTrayIcon");
+    trayIcon->setPixmap (icon);
+    trayIcon->show();
 }
 
 KMouseTool::~KMouseTool()


_______________________________________________
kde-accessibility mailing list
kde-accessibility@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-accessibility


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic