summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-05-19 15:19:59 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-05-26 14:00:40 (GMT)
commit009e94c604e2d892ea8711ed6b3756da3eea9d04 (patch)
tree19e6e57852417c99da27dae32868dd9bda625db1 /Swift/QtUI
parentb765cc5e92913aa25848f845e64c7c3bd808ff50 (diff)
downloadswift-009e94c604e2d892ea8711ed6b3756da3eea9d04.zip
swift-009e94c604e2d892ea8711ed6b3756da3eea9d04.tar.bz2
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
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/Trellis/QtGridSelectionDialog.cpp2
1 files changed, 1 insertions, 1 deletions
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;