Start Application after 1 second delay.
This commit is contained in:
parent
202e83268b
commit
9eb458c4c5
@ -33,10 +33,9 @@ MainWindow::MainWindow(Worker *worker, QWidget *parent)
|
|||||||
ui->updateStatus->setEnabled(true);
|
ui->updateStatus->setEnabled(true);
|
||||||
|
|
||||||
m_startTimer = new QTimer(this);
|
m_startTimer = new QTimer(this);
|
||||||
// connect(m_startTimer, SIGNAL(timeout()), ui->start, SLOT(click()));
|
|
||||||
connect(m_startTimer, SIGNAL(timeout()), m_worker, SLOT(update()));
|
connect(m_startTimer, SIGNAL(timeout()), m_worker, SLOT(update()));
|
||||||
m_startTimer->setSingleShot(true);
|
m_startTimer->setSingleShot(true);
|
||||||
m_startTimer->start(5 * 1000);
|
m_startTimer->start(1000);
|
||||||
|
|
||||||
m_exitTimer = new QTimer(this);
|
m_exitTimer = new QTimer(this);
|
||||||
connect(m_exitTimer, SIGNAL(timeout()), ui->exit, SLOT(click()));
|
connect(m_exitTimer, SIGNAL(timeout()), ui->exit, SLOT(click()));
|
||||||
|
Loading…
Reference in New Issue
Block a user