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/dgwindow.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/dgwindow.cc')
-rw-r--r-- | plugingui/dgwindow.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugingui/dgwindow.cc b/plugingui/dgwindow.cc index cc4aa8a..8d9e789 100644 --- a/plugingui/dgwindow.cc +++ b/plugingui/dgwindow.cc @@ -119,14 +119,16 @@ public: Knob falloffKnob{&falloff}; }; -DGWindow::DGWindow(MessageHandler& messageHandler, Config& config) - : messageHandler(messageHandler) +DGWindow::DGWindow(void* native_window, MessageHandler& messageHandler, + Config& config) + : Window(native_window) + , messageHandler(messageHandler) , config(config) { int vlineSpacing = 16; - setFixedSize(370, 330); + resize(370, 330); setCaption("DrumGizmo v" VERSION); layout.setResizeChildren(false); |