Commit 2fbece9a authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Changed the wait command in Xtt to a busy loop.

parent 2d14057e
......@@ -68,6 +68,7 @@
#include <QPrinter>
#include <QPushButton>
#include <QScrollArea>
#include <QTime>
#include <QTimer>
#include <QVBoxLayout>
......@@ -896,13 +897,12 @@ pwr_tStatus CoWowQt::DeleteMenuItem(const char* name, void* menu)
return 1;
}
void CoWowQtObject::wait_cb()
{
}
void CoWowQt::Wait(float time)
{
initOneShotTimer(m_wait_timerid, SLOT(wait_cb()), int(time * 1000));
QTime start = QTime::currentTime().addMSecs(int(time * 1000));
while (QTime::currentTime() < start) {
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
}
}
void CoWowQt::update_title(QWidget* w, int editmode)
......
......@@ -239,8 +239,6 @@ public:
public slots:
void DisplayWarranty();
void DisplayLicense();
void wait_cb();
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment