From 8b8f8382d66966b3916ea54021449240658bac48 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 18 Nov 2013 17:15:23 +0100 Subject: FileDialog example: remove setGeometry button This was more of a manual test than an example: it should be possible to set the geometry of widget-based and qml-based dialogs. Since it doesn't work for native dialogs let's not invite bug reports about it. Change-Id: I43cb97bff0af932268ae541e3f812fc17a1f76ae Reviewed-by: Liang Qi --- examples/quick/dialogs/systemdialogs/FileDialogs.qml | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'examples/quick') diff --git a/examples/quick/dialogs/systemdialogs/FileDialogs.qml b/examples/quick/dialogs/systemdialogs/FileDialogs.qml index dca47ae1fd..bfc160fa45 100644 --- a/examples/quick/dialogs/systemdialogs/FileDialogs.qml +++ b/examples/quick/dialogs/systemdialogs/FileDialogs.qml @@ -175,16 +175,6 @@ Rectangle { // TODO: QTBUG-29814 This isn't portable, but we don't expose QDir::tempPath to QML yet. onClicked: fileDialog.folder = "/tmp" // file:///tmp would also be OK } - Button { - text: "set geometry" - anchors.verticalCenter: parent.verticalCenter - onClicked: { - fileDialog.width = Math.min(512, Screen.width * 0.9) - fileDialog.height = Math.min(340, Screen.height * 0.9) - fileDialog.x = (Screen.width - fileDialog.width) / 2 - fileDialog.y = (Screen.height - fileDialog.height) / 2 - } - } } } } -- cgit v1.2.3