Commit 8182254c3c120f8298748a62af3d26074535e299
1 parent
812e83f5
Only use QMainWindow::GroupedDragging if Qt >= 5.6
Showing
1 changed file
with
2 additions
and
0 deletions
openhantek/src/mainwindow.cpp
| ... | ... | @@ -41,7 +41,9 @@ OpenHantekMainWindow::OpenHantekMainWindow(HantekDsoControl *dsoControl, DataAna |
| 41 | 41 | readSettings(); |
| 42 | 42 | |
| 43 | 43 | // Create dock windows before the dso widget, they fix messed up settings |
| 44 | + #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) | |
| 44 | 45 | setDockOptions(dockOptions() | QMainWindow::GroupedDragging); |
| 46 | + #endif | |
| 45 | 47 | createDockWindows(); |
| 46 | 48 | |
| 47 | 49 | // Central oszilloscope widget | ... | ... |