Changeset 11714 for trunk


Ignore:
Timestamp:
07/30/11 16:07:30 (13 years ago)
Author:
tbretz
Message:
Enabled regular call of RootUpdate, by calling DisplatchOneEvent instead of ProcessEvents the CPU usage is kept low, but the response time is better.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r11709 r11714  
    27392739        fStatusBar->showMessage(tipText, 3000);
    27402740
    2741         gSystem->ProcessEvents();
     2741        gSystem->DispatchOneEvent(kFALSE);
     2742        //gSystem->ProcessEvents();
    27422743        //QWhatsThis::display(tipText)
    27432744    }
     
    27452746    void slot_RootUpdate()
    27462747    {
    2747         gSystem->ProcessEvents();
    2748         QTimer::singleShot(0, this, SLOT(slot_RootUpdate()));
     2748        gSystem->DispatchOneEvent(kFALSE);
     2749        //gSystem->ProcessEvents();
     2750        QTimer::singleShot(10, this, SLOT(slot_RootUpdate()));
    27492751    }
    27502752
     
    32333235        // --------------------------------------------------------------------------
    32343236
    3235 //        QTimer::singleShot(0, this, SLOT(slot_RootUpdate()));
     3237        QTimer::singleShot(1000, this, SLOT(slot_RootUpdate()));
    32363238
    32373239        //widget->setMouseTracking(true);
Note: See TracChangeset for help on using the changeset viewer.