示例#1
0
void WorkerThread::run()
{
  // This schedules the doTheWork() function
  // to run just after our event loop starts up
  QTimer::singleShot(0, this, SLOT(doTheWork()));

  // This starts the event loop. Note that
  // exec() does not return until the
  // event loop is stopped.
  exec();
}
ResetWidget::ResetWidget (
        ResetBusinessLogic     *resetBusinessLogic, 
        QGraphicsWidget        *parent) :
    DcpWidget (parent),
    m_ResetBusinessLogic (resetBusinessLogic),
    m_currentPlan (None)
{
    createContent();

    connect (resetBusinessLogic, SIGNAL (gotAccess ()),
             this, SLOT (doTheWork ()));
    connect (resetBusinessLogic, SIGNAL (accessDenied ()),
             this, SLOT (operationCancelled ()));
}
示例#3
0
文件: NSGA_II.cpp 项目: werty/PSOEVO
void NSGA_II::run() {
    //qDebug()<<"lol\n";
    doTheWork();
}