summaryrefslogtreecommitdiffstats
path: root/src/overlayWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/overlayWidget.cpp')
-rw-r--r--src/overlayWidget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/overlayWidget.cpp b/src/overlayWidget.cpp
index 331a66e..40653b3 100644
--- a/src/overlayWidget.cpp
+++ b/src/overlayWidget.cpp
@@ -21,14 +21,14 @@
#include "overlayWidget.h"
//#include "statusbar.h"
-#include <qpoint.h>
+#include <ntqpoint.h>
namespace KDE {
-OverlayWidget::OverlayWidget( QWidget *parent, QWidget *anchor, const char* name )
- : QFrame( parent->parentWidget(), name )
+OverlayWidget::OverlayWidget( TQWidget *parent, TQWidget *anchor, const char* name )
+ : TQFrame( parent->parentWidget(), name )
, m_anchor( anchor )
, m_parent( parent )
{
@@ -44,16 +44,16 @@ OverlayWidget::reposition()
adjustSize();
// p is in the alignWidget's coordinates
- QPoint p;
+ TQPoint p;
p.setX( m_anchor->width() - width() );
p.setY( -height() );
// Position in the toplevelwidget's coordinates
- QPoint pTopLevel = m_anchor->mapTo( topLevelWidget(), p );
+ TQPoint pTopLevel = m_anchor->mapTo( topLevelWidget(), p );
// Position in the widget's parentWidget coordinates
- QPoint pParent = parentWidget() ->mapFrom( topLevelWidget(), pTopLevel );
+ TQPoint pParent = parentWidget() ->mapFrom( topLevelWidget(), pTopLevel );
// keep it on the screen
if( pParent.x() < 0 )
pParent.rx() = 0;
@@ -63,28 +63,28 @@ OverlayWidget::reposition()
}
bool
-OverlayWidget::eventFilter( QObject* o, QEvent* e )
+OverlayWidget::eventFilter( TQObject* o, TQEvent* e )
{
- if ( e->type() == QEvent::Move || e->type() == QEvent::Resize )
+ if ( e->type() == TQEvent::Move || e->type() == TQEvent::Resize )
reposition();
- return QFrame::eventFilter( o, e );
+ return TQFrame::eventFilter( o, e );
}
void
-OverlayWidget::resizeEvent( QResizeEvent* ev )
+OverlayWidget::resizeEvent( TQResizeEvent* ev )
{
reposition();
- QFrame::resizeEvent( ev );
+ TQFrame::resizeEvent( ev );
}
bool
-OverlayWidget::event( QEvent *e )
+OverlayWidget::event( TQEvent *e )
{
- if ( e->type() == QEvent::ChildInserted )
+ if ( e->type() == TQEvent::ChildInserted )
adjustSize();
- return QFrame::event( e );
+ return TQFrame::event( e );
}
}