Removed obsolete out-commented lines.
This commit is contained in:
parent
4d2d38e45c
commit
4caa0c0d83
22
worker.cpp
22
worker.cpp
@ -140,28 +140,6 @@ void Worker::privateUpdate() {
|
|||||||
QPushButton *start = qobject_cast<QPushButton *>(QObject::sender());
|
QPushButton *start = qobject_cast<QPushButton *>(QObject::sender());
|
||||||
start->setEnabled(false);
|
start->setEnabled(false);
|
||||||
|
|
||||||
#if 0
|
|
||||||
emit appendText("\nConnecting backend ...");
|
|
||||||
|
|
||||||
for (int i=0;i <= 100; ++i) {
|
|
||||||
setProgress(i);
|
|
||||||
QThread::msleep(100);
|
|
||||||
}
|
|
||||||
emit replaceLast("Connecting backend ...", UPDATE_STEP_OK);
|
|
||||||
emit appendText(QString("UPDATE "), UPDATE_STEP_SUCCESS);
|
|
||||||
emit appendText(QString("UPDATE "), UPDATE_STEP_FAIL);
|
|
||||||
setProgress(0);
|
|
||||||
|
|
||||||
startProgressLoop();
|
|
||||||
QThread::sleep(5); // long running process
|
|
||||||
stopProgressLoop();
|
|
||||||
for (int i=m_mainWindow->progressValue()/10; i <= 100; ++i) {
|
|
||||||
setProgress(i);
|
|
||||||
QThread::msleep(100);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
emit stopStartTimer();
|
emit stopStartTimer();
|
||||||
emit disableExit();
|
emit disableExit();
|
||||||
m_updateProcessRunning = true;
|
m_updateProcessRunning = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user