Changeset 8 for trunk/src/widgets/qtooltip.cpp
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/widgets/qtooltip.cpp
r7 r8 126 126 int wakeUpDelay; 127 127 QTimer fallAsleep; 128 #ifdef Q_WS_PM 129 QTimer doAllowAnimation; 130 #endif 128 131 129 132 QPtrDict<Tip> *tips; … … 164 167 connect( &wakeUp, SIGNAL(timeout()), SLOT(showTip()) ); 165 168 connect( &fallAsleep, SIGNAL(timeout()), SLOT(hideTip()) ); 169 #ifdef Q_WS_PM 170 connect( &doAllowAnimation, SIGNAL(timeout()), SLOT(allowAnimation()) ); 171 #endif 166 172 removeTimer = new QTimer( this ); 167 173 } … … 589 595 void QTipManager::hideTip() 590 596 { 597 #ifdef Q_WS_PM 598 // OS/2 PM has a very low limit on the number of simultaneous PM timers, 599 // so we reuse the same timer instead of creating a new one every time this 600 // function is invoked (it can happen more frequently than once per 250 ms). 601 doAllowAnimation.start( 250, TRUE ); 602 #else 591 603 QTimer::singleShot( 250, this, SLOT(allowAnimation()) ); 604 #endif 592 605 preventAnimation = TRUE; 593 606
Note:
See TracChangeset
for help on using the changeset viewer.