Hello.
The attached patch makes the systray example load its icon in a better
way [1]. With it, an icon of the appropriate size is loaded, instead of
a big one which does not fits.
[1] As per
http://developer.kde.org/documentation/library/3.5-api/kdelibs-apidocs/kdeui/html/classKSystemTray.html#e0
I hope it can be applied if it's correct. (If this is not the correct
address to send patches, please direct me to the right place.)
Cheers,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
Listening to: Franz Ferdinand - Outsiders
--- systray.py~ 2007-08-04 13:23:44.000000000 +0200
+++ systray.py 2007-08-04 13:25:19.000000000 +0200
@@ -30,7 +30,7 @@
import sys
from qt import QLabel
-from kdecore import KApplication, KIcon, KIconLoader
+from kdecore import KApplication
from kdeui import KMainWindow, KSystemTray
class MainWin (KMainWindow):
@@ -42,10 +42,9 @@
appName = "template"
app = KApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
-icons = KIconLoader ()
systray = KSystemTray (mainWindow)
-systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop))
+systray.setPixmap (systray.loadIcon("stop"))
systray.show ()
#mainWindow.show()
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt