From b9773f6eecea38e6a5aa28745cc6fe79aa2d441f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 12 Mar 2016 10:54:52 +0100 Subject: 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. --- plugingui/dgwindow.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugingui/dgwindow.cc') 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); -- cgit v1.2.3