Ignore:
Timestamp:
Nov 16, 2005, 8:36:46 PM (20 years ago)
Author:
dmik
Message:

Transferred Qt for OS/2 version 3.3.1-rc5 sources from the CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/widgets/qtooltip.cpp

    r7 r8  
    126126    int wakeUpDelay;
    127127    QTimer  fallAsleep;
     128#ifdef Q_WS_PM
     129    QTimer  doAllowAnimation;
     130#endif   
    128131
    129132    QPtrDict<Tip> *tips;
     
    164167    connect( &wakeUp, SIGNAL(timeout()), SLOT(showTip()) );
    165168    connect( &fallAsleep, SIGNAL(timeout()), SLOT(hideTip()) );
     169#ifdef Q_WS_PM   
     170    connect( &doAllowAnimation, SIGNAL(timeout()), SLOT(allowAnimation()) );
     171#endif   
    166172    removeTimer = new QTimer( this );
    167173}
     
    589595void QTipManager::hideTip()
    590596{
     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
    591603    QTimer::singleShot( 250, this, SLOT(allowAnimation()) );
     604#endif   
    592605    preventAnimation = TRUE;
    593606
Note: See TracChangeset for help on using the changeset viewer.