Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
2fbece9a
Commit
2fbece9a
authored
Nov 30, 2020
by
Christoffer Ackelman
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Changed the wait command in Xtt to a busy loop.
parent
2d14057e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
xtt/lib/cow/qt/cow_wow_qt.cqt
xtt/lib/cow/qt/cow_wow_qt.cqt
+5
-5
xtt/lib/cow/qt/cow_wow_qt.h
xtt/lib/cow/qt/cow_wow_qt.h
+0
-2
No files found.
xtt/lib/cow/qt/cow_wow_qt.cqt
View file @
2fbece9a
...
@@ -68,6 +68,7 @@
...
@@ -68,6 +68,7 @@
#include <QPrinter>
#include <QPrinter>
#include <QPushButton>
#include <QPushButton>
#include <QScrollArea>
#include <QScrollArea>
#include <QTime>
#include <QTimer>
#include <QTimer>
#include <QVBoxLayout>
#include <QVBoxLayout>
...
@@ -896,13 +897,12 @@ pwr_tStatus CoWowQt::DeleteMenuItem(const char* name, void* menu)
...
@@ -896,13 +897,12 @@ pwr_tStatus CoWowQt::DeleteMenuItem(const char* name, void* menu)
return 1;
return 1;
}
}
void CoWowQtObject::wait_cb()
{
}
void CoWowQt::Wait(float time)
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)
void CoWowQt::update_title(QWidget* w, int editmode)
...
...
xtt/lib/cow/qt/cow_wow_qt.h
View file @
2fbece9a
...
@@ -239,8 +239,6 @@ public:
...
@@ -239,8 +239,6 @@ public:
public
slots
:
public
slots
:
void
DisplayWarranty
();
void
DisplayWarranty
();
void
DisplayLicense
();
void
DisplayLicense
();
void
wait_cb
();
};
};
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment