From 8182254c3c120f8298748a62af3d26074535e299 Mon Sep 17 00:00:00 2001 From: David Graeff Date: Sun, 17 Dec 2017 04:39:51 +0100 Subject: [PATCH] Only use QMainWindow::GroupedDragging if Qt >= 5.6 --- openhantek/src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/openhantek/src/mainwindow.cpp b/openhantek/src/mainwindow.cpp index ad8e2c3..b863161 100644 --- a/openhantek/src/mainwindow.cpp +++ b/openhantek/src/mainwindow.cpp @@ -41,7 +41,9 @@ OpenHantekMainWindow::OpenHantekMainWindow(HantekDsoControl *dsoControl, DataAna readSettings(); // Create dock windows before the dso widget, they fix messed up settings + #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) setDockOptions(dockOptions() | QMainWindow::GroupedDragging); + #endif createDockWindows(); // Central oszilloscope widget -- libgit2 0.21.4