diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-04-04 08:16:37 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-04-04 07:23:35 +0000 |
commit | 56e174c5a926b0d92ad55a05d8e2f40d6f6adf95 (patch) | |
tree | 2fef768fa05eb90d0b5fc3c8e49b6d5a51e9870d | |
parent | 4df12d1ae59da65c1338b1e3b894e8f88beded0f (diff) |
Doc: use Math.round() in Overlay parent example
Change-Id: Ib8c0688e071781e25ef4fdd8a51e302def32215f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r-- | src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc b/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc index 7ad8a003..5562f6a0 100644 --- a/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc +++ b/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc @@ -11,8 +11,8 @@ Button { parent: Overlay.overlay - x: (parent.width - width) / 2 - y: (parent.height - height) / 2 + x: Math.round((parent.width - width) / 2) + y: Math.round((parent.height - height) / 2) width: 100 height: 100 } |