summaryrefslogtreecommitdiffstats
path: root/kmail/kwindowpositioner.cpp
diff options
context:
space:
mode:
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();
}