summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-08-11 11:23:26 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-08-15 08:02:21 (GMT)
commit9c7b60d481395491218a30cedb961b3dc49eb941 (patch)
tree11eff58da02b3e5797ce8cd19714bd97185db60b /Swift/QtUI/Trellis/QtGridSelectionDialog.h
parenta3747d20b3753e643c76f4051b6789ce9ffcd11a (diff)
downloadswift-9c7b60d481395491218a30cedb961b3dc49eb941.zip
swift-9c7b60d481395491218a30cedb961b3dc49eb941.tar.bz2
Improve UX of grid selection dialog
This fixes UI drawing quirks on Windows and improves the margins. It also adds a descriptive text on how to use the dialog. It adjusts the cursor position when changing the size via keyboard so switches between keyboard and mouse usage of the dialog are fluid. Test-Information: Verified usage and looks on Windows 8 with Qt 5.4.2 and on OS X 10.11.6 with Qt 5.5.1. Change-Id: I983656d7d08d49ac4914380ae42ed5ce49fcea12
Diffstat (limited to 'Swift/QtUI/Trellis/QtGridSelectionDialog.h')
-rw-r--r--Swift/QtUI/Trellis/QtGridSelectionDialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/Trellis/QtGridSelectionDialog.h b/Swift/QtUI/Trellis/QtGridSelectionDialog.h
index 56a575f..557963d 100644
--- a/Swift/QtUI/Trellis/QtGridSelectionDialog.h
+++ b/Swift/QtUI/Trellis/QtGridSelectionDialog.h
@@ -42,6 +42,7 @@ namespace Swift {
void showEvent(QShowEvent* event);
void hideEvent(QHideEvent* event);
void leaveEvent(QEvent *event);
+ bool event(QEvent* event);
private:
int padding;
@@ -53,5 +54,7 @@ namespace Swift {
QSize currentGridSize;
QSize minGridSize;
QSize maxGridSize;
+
+ const QString descriptionText;
};
}