aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-11-18 17:15:23 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-19 13:00:53 +0100
commit8b8f8382d66966b3916ea54021449240658bac48 (patch)
tree007b185a0c766fdf047081ceb9ce10fb0a28a5ec /examples/quick
parentd6f9e961ca31d498567301d5359d1de7f6638fb7 (diff)
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 <liang.qi@digia.com>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/dialogs/systemdialogs/FileDialogs.qml10
1 files changed, 0 insertions, 10 deletions
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
- }
- }
}
}
}