diff options
| author | David Skoland <davidskoland@gmail.com> | 2018-12-26 16:43:08 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2018-12-26 16:43:08 +0100 |
| commit | 00cfd2750d39795e4c205aee2a33b92b1da2524d (patch) | |
| tree | 839c1129418ca8fefe41e6814917f9dabb6efa4b /src/misc_functions.cpp | |
| parent | 6f1bce5882676ea7affe717a2f5a00b8c3b7fe12 (diff) | |
moved headers into include and cpp files into src + logo into resource
Diffstat (limited to 'src/misc_functions.cpp')
| -rw-r--r-- | src/misc_functions.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/misc_functions.cpp b/src/misc_functions.cpp new file mode 100644 index 00000000..23520551 --- /dev/null +++ b/src/misc_functions.cpp @@ -0,0 +1,9 @@ +#include "misc_functions.h" + +void delay(int p_milliseconds) +{ + QTime dieTime = QTime::currentTime().addMSecs(p_milliseconds); + + while(QTime::currentTime() < dieTime) + QCoreApplication::processEvents(QEventLoop::AllEvents, 100); +} |
