summaryrefslogtreecommitdiffstats
path: root/ksystraycmd/ksystraycmd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /ksystraycmd/ksystraycmd.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksystraycmd/ksystraycmd.cpp')
-rw-r--r--ksystraycmd/ksystraycmd.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksystraycmd/ksystraycmd.cpp b/ksystraycmd/ksystraycmd.cpp
index f912c1221..3fd228a30 100644
--- a/ksystraycmd/ksystraycmd.cpp
+++ b/ksystraycmd/ksystraycmd.cpp
@@ -25,8 +25,8 @@ KSysTrayCmd::KSysTrayCmd()
isVisible(true), lazyStart( false ), noquit( false ), quitOnHide( false ), onTop(false), ownIcon(false),
win(0), client(0), kwinmodule(0), top(0), left(0)
{
- setAlignment( AlignCenter );
- kwinmodule = new KWinModule( this );
+ tqsetAlignment( AlignCenter );
+ kwinmodule = new KWinModule( TQT_TQOBJECT(this) );
refresh();
}
@@ -195,7 +195,7 @@ void KSysTrayCmd::clientExited()
if ( lazyStart && noquit )
refresh();
else
- qApp->quit();
+ tqApp->quit();
}
void KSysTrayCmd::quitClient()
@@ -212,11 +212,11 @@ void KSysTrayCmd::quitClient()
// That's why when the application is closed we aren't informed.
// So we quit now.
if ( !command ) {
- qApp->quit();
+ tqApp->quit();
}
}
else {
- qApp->quit();
+ tqApp->quit();
}
}
@@ -225,7 +225,7 @@ void KSysTrayCmd::quit()
if ( !isVisible ) {
showWindow();
}
- qApp->quit();
+ tqApp->quit();
}
void KSysTrayCmd::execContextMenu( const TQPoint &pos )
@@ -292,7 +292,7 @@ void KSysTrayCmd::windowChanged( WId w )
void KSysTrayCmd::mousePressEvent( TQMouseEvent *e )
{
- if ( e->button() == RightButton )
+ if ( e->button() == Qt::RightButton )
execContextMenu( e->globalPos() );
else if ( lazyStart && ( !hasRunningClient() ) )
{