diff options
Diffstat (limited to 'libkdepim/overlaywidget.cpp')
-rw-r--r-- | libkdepim/overlaywidget.cpp | 22 |
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" |