From 66de6538f6977439563730b9ddf0e59676c724b8 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 26 Feb 2015 14:07:36 +0100 Subject: Examples: Adjust gallery example for designer * Giving every file a default size Change-Id: Ied25b5a4c142be98fdbea27c268782b2d337bb4a Reviewed-by: J-P Nurmi --- examples/quick/controls/gallery/main.qml | 3 +++ examples/quick/controls/gallery/qml/ButtonPage.qml | 2 ++ examples/quick/controls/gallery/qml/InputPage.qml | 2 ++ examples/quick/controls/gallery/qml/ProgressPage.qml | 2 ++ 4 files changed, 9 insertions(+) diff --git a/examples/quick/controls/gallery/main.qml b/examples/quick/controls/gallery/main.qml index a6e76f75..ab3d8d32 100644 --- a/examples/quick/controls/gallery/main.qml +++ b/examples/quick/controls/gallery/main.qml @@ -49,6 +49,9 @@ ApplicationWindow { visible: true title: "Qt Quick Controls Gallery" + width: 640 + height: 480 + MessageDialog { id: aboutDialog icon: StandardIcon.Information diff --git a/examples/quick/controls/gallery/qml/ButtonPage.qml b/examples/quick/controls/gallery/qml/ButtonPage.qml index dfaaa8f7..b6db20de 100644 --- a/examples/quick/controls/gallery/qml/ButtonPage.qml +++ b/examples/quick/controls/gallery/qml/ButtonPage.qml @@ -44,6 +44,8 @@ import QtQuick.Controls 1.2 ScrollView { id: page + implicitWidth: 640 + implicitHeight: 200 horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff diff --git a/examples/quick/controls/gallery/qml/InputPage.qml b/examples/quick/controls/gallery/qml/InputPage.qml index bf51632c..66042967 100644 --- a/examples/quick/controls/gallery/qml/InputPage.qml +++ b/examples/quick/controls/gallery/qml/InputPage.qml @@ -44,6 +44,8 @@ import QtQuick.Controls 1.2 ScrollView { id: page + implicitWidth: 640 + implicitHeight: 400 horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff diff --git a/examples/quick/controls/gallery/qml/ProgressPage.qml b/examples/quick/controls/gallery/qml/ProgressPage.qml index 4ca52af1..416e936a 100644 --- a/examples/quick/controls/gallery/qml/ProgressPage.qml +++ b/examples/quick/controls/gallery/qml/ProgressPage.qml @@ -44,6 +44,8 @@ import QtQuick.Controls 1.2 ScrollView { id: page + implicitWidth: 640 + implicitHeight: 400 horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff -- cgit v1.2.1