aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-15 16:02:47 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-18 20:02:12 +0000
commit11d0214ed6b0cfbbe743fe05baa38d3b5c177f08 (patch)
tree0fc052af90b47e6dddd226b2c0d75b23672ce63b /examples
parenta5b14886968ad258921aeb719710744d99d0a464 (diff)
Gallery: round settings dialog's coordinates and size
Make sure it doesn't land between the pixels, which may look awkward with antialiased rectangles and graphical effects / shaders. Change-Id: If4919dd97670437ffe40a060fd8e1e72b5a982a3 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols2/gallery/gallery.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quickcontrols2/gallery/gallery.qml b/examples/quickcontrols2/gallery/gallery.qml
index 955fb05d..c603184a 100644
--- a/examples/quickcontrols2/gallery/gallery.qml
+++ b/examples/quickcontrols2/gallery/gallery.qml
@@ -209,9 +209,9 @@ ApplicationWindow {
Popup {
id: settingsDialog
- x: (window.width - width) / 2
- y: window.height / 6
- width: Math.min(window.width, window.height) / 3 * 2
+ x: Math.round((window.width - width) / 2)
+ y: Math.round(window.height / 6)
+ width: Math.round(Math.min(window.width, window.height) / 3 * 2)
height: settingsColumn.implicitHeight + topPadding + bottomPadding
modal: true
focus: true