summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin/waTitleBar.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/winskin/waTitleBar.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/winskin/waTitleBar.cpp')
-rw-r--r--noatun/modules/winskin/waTitleBar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noatun/modules/winskin/waTitleBar.cpp b/noatun/modules/winskin/waTitleBar.cpp
index bba7386e..b3b4917c 100644
--- a/noatun/modules/winskin/waTitleBar.cpp
+++ b/noatun/modules/winskin/waTitleBar.cpp
@@ -25,7 +25,7 @@
WaTitleBar::WaTitleBar() : WaIndicator(_WA_MAPPING_TITLE, _WA_SKIN_TITLE_ACTIVE, _WA_SKIN_TITLE_INACTIVE)
{
moving = false;
- setState(parentWidget()->isActiveWindow());
+ setState(tqparentWidget()->isActiveWindow());
}
WaTitleBar::~WaTitleBar()
@@ -34,7 +34,7 @@ WaTitleBar::~WaTitleBar()
void WaTitleBar::mousePressEvent(TQMouseEvent * e)
{
- if (e->button() != RightButton) {
+ if (e->button() != Qt::RightButton) {
if (!moving) {
moving = true;
mDragStart = e->pos();
@@ -55,7 +55,7 @@ void WaTitleBar::mouseDoubleClickEvent(TQMouseEvent *) {
void WaTitleBar::mouseReleaseEvent(TQMouseEvent * e)
{
- if (e->button() != RightButton) {
+ if (e->button() != Qt::RightButton) {
moving = false;
update();
return;
@@ -73,7 +73,7 @@ void WaTitleBar::mouseMoveEvent(TQMouseEvent * e)
}
if (moving)
- parentWidget()->move(e->globalPos() - mDragStart);
+ tqparentWidget()->move(e->globalPos() - mDragStart);
}
#include <waTitleBar.moc>