summaryrefslogtreecommitdiffstats
path: root/src/widgets/qtooltip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qtooltip.cpp')
-rw-r--r--src/widgets/qtooltip.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/widgets/qtooltip.cpp b/src/widgets/qtooltip.cpp
index 5507bfc7..fc33aef5 100644
--- a/src/widgets/qtooltip.cpp
+++ b/src/widgets/qtooltip.cpp
@@ -156,7 +156,7 @@ static void initTipManager()
TQTipManager::TQTipManager()
- : TQObject( qApp, "toolTipManager" )
+ : TQObject( tqApp, "toolTipManager" )
{
wakeUpDelay = 700;
tips = new TQPtrDict<TQTipManager::Tip>( 313 );
@@ -173,9 +173,9 @@ TQTipManager::TQTipManager()
TQTipManager::~TQTipManager()
{
- if ( isApplicationFilter && !qApp->closingDown() ) {
- qApp->setGlobalMouseTracking( FALSE );
- qApp->removeEventFilter( tipManager );
+ if ( isApplicationFilter && !tqApp->closingDown() ) {
+ tqApp->setGlobalMouseTracking( FALSE );
+ tqApp->removeEventFilter( tipManager );
}
delete label;
@@ -234,10 +234,10 @@ void TQTipManager::add( const TQRect &gm, TQWidget *w,
showTip();
}
- if ( !isApplicationFilter && qApp ) {
+ if ( !isApplicationFilter && tqApp ) {
isApplicationFilter = TRUE;
- qApp->installEventFilter( tipManager );
- qApp->setGlobalMouseTracking( TRUE );
+ tqApp->installEventFilter( tipManager );
+ tqApp->setGlobalMouseTracking( TRUE );
}
if ( t->group ) {
@@ -371,11 +371,11 @@ bool TQTipManager::eventFilter( TQObject *obj, TQEvent *e )
// avoid dumping core in case of application madness, and return
// tquickly for some common but irrelevant events
if ( e->type() == TQEvent::WindowDeactivate &&
- qApp && !qApp->activeWindow() &&
+ tqApp && !tqApp->activeWindow() &&
label && label->isVisible() )
hideTipAndSleep();
- if ( !qApp
+ if ( !tqApp
|| !obj || !obj->isWidgetType() // isWidgetType() catches most stuff
|| e->type() == TQEvent::Paint
|| e->type() == TQEvent::Timer