summaryrefslogtreecommitdiffstats
path: root/src/gtk2_in_qt5.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-13 15:29:59 +0000
committerDavid Robillard <d@drobilla.net>2015-09-13 15:29:59 +0000
commitca1c65094684479ca756ba9351681f2e23d7afb7 (patch)
treeea4641c432d119a96e3c2b0c9ca8397e6dad4c96 /src/gtk2_in_qt5.cpp
parent9e50f63ac4e5138f79a15df5eda65ab429f5bcb8 (diff)
downloadsuil-ca1c65094684479ca756ba9351681f2e23d7afb7.tar.gz
suil-ca1c65094684479ca756ba9351681f2e23d7afb7.tar.bz2
suil-ca1c65094684479ca756ba9351681f2e23d7afb7.zip
Fix Qt5 wrapping.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5730 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gtk2_in_qt5.cpp')
-rw-r--r--src/gtk2_in_qt5.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/gtk2_in_qt5.cpp b/src/gtk2_in_qt5.cpp
index 0d42ffd..6ebb8c7 100644
--- a/src/gtk2_in_qt5.cpp
+++ b/src/gtk2_in_qt5.cpp
@@ -15,10 +15,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <QWindow>
-#include <QWidget>
-
#include <QVBoxLayout>
+#include <QWidget>
+#include <QWindow>
#undef signals
@@ -76,16 +75,8 @@ static int
wrapper_wrap(SuilWrapper* wrapper,
SuilInstance* instance)
{
- Qt::WindowFlags wflags = Qt::Window
- | Qt::CustomizeWindowHint
- | Qt::WindowTitleHint
- | Qt::WindowSystemMenuHint
- | Qt::WindowMinMaxButtonsHint
- | Qt::WindowCloseButtonHint;
-
SuilGtk2InQt5Wrapper* const impl = (SuilGtk2InQt5Wrapper*)wrapper->impl;
- QWidget* parent = static_cast<QWidget*>(impl->parent);
- QWidget* const wrap = new QWidget(parent, wflags);
+ QWidget* const wrap = new QWidget(NULL, Qt::Window);
GtkWidget* const plug = gtk_plug_new(0);
GtkWidget* const widget = (GtkWidget*)instance->ui_widget;