From 009e94c604e2d892ea8711ed6b3756da3eea9d04 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Tue, 19 May 2015 17:19:59 +0200 Subject: Set QtGetridSelectionDialog to frameless window to enable cursor changes Popup windows cannot change the mouse cursor on OS X. A frameless window looks the same. Test-Information: Tested on OS X 10.9.5 with Qt 5.4. Change-Id: Ia97e645be2ad1e5063f0cd8ef54344b63274b2d1 diff --git a/Swift/QtUI/Trellis/QtGridSelectionDialog.cpp b/Swift/QtUI/Trellis/QtGridSelectionDialog.cpp index 3bcdfa0..a3a1bf8 100644 --- a/Swift/QtUI/Trellis/QtGridSelectionDialog.cpp +++ b/Swift/QtUI/Trellis/QtGridSelectionDialog.cpp @@ -21,7 +21,7 @@ QtGridSelectionDialog::QtGridSelectionDialog(QWidget* parent) : QWidget(parent) minGridSize = QSize(1,1); currentGridSize = QSize(1,1); padding = 4; - setWindowFlags(Qt::Popup); + setWindowFlags(Qt::FramelessWindowHint); setCursor(Qt::SizeAllCursor); horizontalMargin = style()->pixelMetric(QStyle::PM_MenuVMargin) * 2; verticalMargin = style()->pixelMetric(QStyle::PM_MenuVMargin) * 2; -- cgit v0.10.2-6-g49f6