Commit 09eeae9a authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Changed wait command in xtt to a busy loop.

parent c08fe19b
......@@ -68,6 +68,7 @@
#include <QPrinter>
#include <QPushButton>
#include <QScrollArea>
#include <QTime>
#include <QTimer>
#include <QVBoxLayout>
......@@ -887,13 +888,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