summaryrefslogtreecommitdiffstats
path: root/noatun/modules/systray/kitsystemtray.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /noatun/modules/systray/kitsystemtray.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/systray/kitsystemtray.cpp')
-rw-r--r--noatun/modules/systray/kitsystemtray.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/noatun/modules/systray/kitsystemtray.cpp b/noatun/modules/systray/kitsystemtray.cpp
index 8e42a3ed..61c0f035 100644
--- a/noatun/modules/systray/kitsystemtray.cpp
+++ b/noatun/modules/systray/kitsystemtray.cpp
@@ -44,12 +44,12 @@
#include <fixx11h.h>
-KitSystemTray::KitSystemTray(const TQString &contextMenu, KMainWindow *parent, const char *name)
- : KSystemTray(parent, name)
+KitSystemTray::KitSystemTray(const TQString &contextMenu, KMainWindow *tqparent, const char *name)
+ : KSystemTray(tqparent, name)
{
- setAlignment(AlignHCenter | AlignVCenter);
- menu = (KPopupMenu *)parent->guiFactory()->container(contextMenu, parent);
- menu->insertTitle(SmallIcon("noatun"), TQString::null, 0, 0);
+ tqsetAlignment(AlignHCenter | AlignVCenter);
+ menu = (KPopupMenu *)tqparent->guiFactory()->container(contextMenu, tqparent);
+ menu->insertTitle(SmallIcon("noatun"), TQString(), 0, 0);
setAcceptDrops(true);
}
@@ -67,10 +67,10 @@ void KitSystemTray::mousePressEvent(TQMouseEvent *event)
{
switch(event->button())
{
- case LeftButton:
+ case Qt::LeftButton:
napp->toggleInterfaces();
break;
- case MidButton:
+ case Qt::MidButton:
if (YHConfig::self()->middleMouseAction() == YHConfig::HideShowPlaylist)
napp->playlist()->toggleList();
else // play or pause
@@ -103,11 +103,11 @@ void KitSystemTray::wheelEvent(TQWheelEvent *event)
YHConfig *c = YHConfig::self();
int action = 0;
- if (event->state() & Qt::ShiftButton)
+ if (event->state() & TQt::ShiftButton)
action = c->mouseWheelAction(YHConfig::Shift);
- else if (event->state() & Qt::ControlButton)
+ else if (event->state() & TQt::ControlButton)
action = c->mouseWheelAction(YHConfig::Ctrl);
- else if (event->state() & Qt::AltButton)
+ else if (event->state() & TQt::AltButton)
action = c->mouseWheelAction(YHConfig::Alt);
else
action = c->mouseWheelAction(YHConfig::None);