summaryrefslogtreecommitdiffstats
path: root/libkdepim/overlaywidget.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 /libkdepim/overlaywidget.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 'libkdepim/overlaywidget.cpp')
-rw-r--r--libkdepim/overlaywidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libkdepim/overlaywidget.cpp b/libkdepim/overlaywidget.cpp
index d9353fd31..2e6f703cb 100644
--- a/libkdepim/overlaywidget.cpp
+++ b/libkdepim/overlaywidget.cpp
@@ -31,8 +31,8 @@
#include "overlaywidget.h"
using namespace KPIM;
-OverlayWidget::OverlayWidget( QWidget* alignWidget, QWidget* parent, const char* name )
- : QHBox( parent, name ), mAlignWidget( 0 )
+OverlayWidget::OverlayWidget( TQWidget* alignWidget, TQWidget* parent, const char* name )
+ : TQHBox( parent, name ), mAlignWidget( 0 )
{
setAlignWidget( alignWidget );
}
@@ -46,19 +46,19 @@ void OverlayWidget::reposition()
if ( !mAlignWidget )
return;
// p is in the alignWidget's coordinates
- QPoint p;
+ TQPoint p;
// We are always above the alignWidget, right-aligned with it.
p.setX( mAlignWidget->width() - width() );
p.setY( -height() );
// Position in the toplevelwidget's coordinates
- QPoint pTopLevel = mAlignWidget->mapTo( topLevelWidget(), p );
+ TQPoint pTopLevel = mAlignWidget->mapTo( topLevelWidget(), p );
// Position in the widget's parentWidget coordinates
- QPoint pParent = parentWidget()->mapFrom( topLevelWidget(), pTopLevel );
+ TQPoint pParent = parentWidget()->mapFrom( topLevelWidget(), pTopLevel );
// Move 'this' to that position.
move( pParent );
}
-void OverlayWidget::setAlignWidget( QWidget * w )
+void OverlayWidget::setAlignWidget( TQWidget * w )
{
if (w == mAlignWidget)
return;
@@ -74,19 +74,19 @@ void OverlayWidget::setAlignWidget( QWidget * w )
reposition();
}
-bool OverlayWidget::eventFilter( QObject* o, QEvent* e)
+bool OverlayWidget::eventFilter( TQObject* o, TQEvent* e)
{
if ( o == mAlignWidget &&
- ( e->type() == QEvent::Move || e->type() == QEvent::Resize ) ) {
+ ( e->type() == TQEvent::Move || e->type() == TQEvent::Resize ) ) {
reposition();
}
- return QFrame::eventFilter(o,e);
+ return TQFrame::eventFilter(o,e);
}
-void OverlayWidget::resizeEvent( QResizeEvent* ev )
+void OverlayWidget::resizeEvent( TQResizeEvent* ev )
{
reposition();
- QFrame::resizeEvent( ev );
+ TQFrame::resizeEvent( ev );
}
#include "overlaywidget.moc"