summaryrefslogtreecommitdiffstats
path: root/kmail/kwindowpositioner.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kwindowpositioner.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kwindowpositioner.cpp')
-rw-r--r--kmail/kwindowpositioner.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmail/kwindowpositioner.cpp b/kmail/kwindowpositioner.cpp
index c99ab7c0b..fefbdde2c 100644
--- a/kmail/kwindowpositioner.cpp
+++ b/kmail/kwindowpositioner.cpp
@@ -23,18 +23,18 @@
#include <kdebug.h>
-#include <qwidget.h>
+#include <tqwidget.h>
-KWindowPositioner::KWindowPositioner( QWidget *master, QWidget *slave,
+KWindowPositioner::KWindowPositioner( TQWidget *master, TQWidget *slave,
Mode mode )
- : QObject( master ), mMaster( master ), mSlave( slave ), mMode( mode )
+ : TQObject( master ), mMaster( master ), mSlave( slave ), mMode( mode )
{
master->topLevelWidget()->installEventFilter( this );
}
-bool KWindowPositioner::eventFilter( QObject *, QEvent *e )
+bool KWindowPositioner::eventFilter( TQObject *, TQEvent *e )
{
- if ( e->type() == QEvent::Move ) {
+ if ( e->type() == TQEvent::Move ) {
reposition();
}
@@ -43,16 +43,16 @@ bool KWindowPositioner::eventFilter( QObject *, QEvent *e )
void KWindowPositioner::reposition()
{
- QPoint relativePos;
+ TQPoint relativePos;
if ( mMode == Right ) {
- relativePos = QPoint( mMaster->width(), -100 );
+ relativePos = TQPoint( mMaster->width(), -100 );
} else if ( mMode == Bottom ) {
- relativePos = QPoint( 100 - mSlave->width() + mMaster->width(),
+ relativePos = TQPoint( 100 - mSlave->width() + mMaster->width(),
mMaster->height() );
} else {
kdError() << "KWindowPositioner: Illegal mode" << endl;
}
- QPoint pos = mMaster->mapToGlobal( relativePos );
+ TQPoint pos = mMaster->mapToGlobal( relativePos );
mSlave->move( pos );
mSlave->raise();
}