diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2015-04-14 14:22:16 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2015-04-15 10:54:06 +0200 |
commit | 9159a6f9ea308404227f64998c284c482f58b162 (patch) | |
tree | 06b56d2bcfc813a4fd2dc07444162e58459196bd /src/gui/freedesksystray.cpp | |
parent | 4b85e25aa5ec624a299028a30bb625248beefedd (diff) | |
download | twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar.gz twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar.lz twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar.xz twinkle-9159a6f9ea308404227f64998c284c482f58b162.zip |
Qt4 port step 6: QPixmap::fromMimeSource cleanup
Convert remaining uses of QPixmap::fromMimeSource() to
qPixmapFromMimeSource (will be rewritten to native Qt4 resources later).
Diffstat (limited to 'src/gui/freedesksystray.cpp')
-rw-r--r-- | src/gui/freedesksystray.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/freedesksystray.cpp b/src/gui/freedesksystray.cpp index 2c75d6f..33f5ed6 100644 --- a/src/gui/freedesksystray.cpp +++ b/src/gui/freedesksystray.cpp @@ -22,6 +22,7 @@ #include "freedesksystray.h" //Added by qt3to4: +#include <q3mimefactory.h> #include <QPixmap> #include <QLabel> #include <QMouseEvent> @@ -40,7 +41,7 @@ void FreeDeskSysTray::dock () trayMenu->insertSeparator(); trayMenu->insertItem(tr("Show/Hide"), this, SLOT(slotMenuItemShow())) ; - QIcon quitIcon(QPixmap::fromMimeSource("exit.png")); + QIcon quitIcon(qPixmapFromMimeSource("exit.png")); trayMenu->insertItem(quitIcon, tr("Quit"), this, SLOT(slotMenuItemQuit())) ; Display *dpy = QPaintDevice::x11AppDisplay(); |