diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-12 10:54:52 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-12 10:54:52 +0100 |
commit | b9773f6eecea38e6a5aa28745cc6fe79aa2d441f (patch) | |
tree | 3740949c67bb6bfe533b35974f230c0443ce2c57 /plugingui/testmain.cc | |
parent | 4bda33e204fafc4fdee6d14d5167ca7a801400ae (diff) |
Add parent widget pointer for contained plugin windows. Remove threaded event handling and make all event handling depend on processEcvents being called with a regular (~50ms) interval.
Diffstat (limited to 'plugingui/testmain.cc')
-rw-r--r-- | plugingui/testmain.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/testmain.cc b/plugingui/testmain.cc index 08c0ad7..e1a1256 100644 --- a/plugingui/testmain.cc +++ b/plugingui/testmain.cc @@ -52,10 +52,11 @@ public: while(running) { #ifdef WIN32 - SleepEx(1000, FALSE); + SleepEx(50, FALSE); #else - sleep(1); + usleep(50000); #endif + gui.processEvents(); } } |