aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/settingspage.ui
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2015-07-16 11:49:50 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2015-07-17 11:17:49 +0000
commitb4df8eb42c70944ce57c74170778a5d8d78d9073 (patch)
tree59cd610fed7849af2f354946343d84e2f660a3ef /src/plugins/qmldesigner/settingspage.ui
parent225e2ae02eaf3327e8923cdc6d6719a689cfa1b3 (diff)
QmlDesigner: Adding some puppet settings
Change-Id: I8ba718a7388abab41436afffb5645935b2d52eee Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/settingspage.ui')
-rw-r--r--src/plugins/qmldesigner/settingspage.ui367
1 files changed, 238 insertions, 129 deletions
diff --git a/src/plugins/qmldesigner/settingspage.ui b/src/plugins/qmldesigner/settingspage.ui
index d73a72f034..8732022c2c 100644
--- a/src/plugins/qmldesigner/settingspage.ui
+++ b/src/plugins/qmldesigner/settingspage.ui
@@ -6,35 +6,29 @@
<rect>
<x>0</x>
<y>0</y>
- <width>726</width>
- <height>774</height>
+ <width>601</width>
+ <height>389</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="6" column="0">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="0" column="0">
- <widget class="QGroupBox" name="groupBox_3">
- <property name="title">
- <string>Snapping</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <layout class="QFormLayout" name="formLayout_2">
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QGroupBox" name="groupBox_3">
+ <property name="title">
+ <string>Snapping</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="1" column="1">
+ <widget class="QSpinBox" name="spinItemSpacing">
+ <property name="maximum">
+ <number>50</number>
+ </property>
+ </widget>
+ </item>
<item row="0" column="0">
<widget class="QLabel" name="snapMarginLabel">
<property name="text">
@@ -44,12 +38,6 @@
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spinSnapMargin">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
<property name="maximum">
<number>10</number>
</property>
@@ -62,32 +50,15 @@
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QSpinBox" name="spinItemSpacing">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="maximum">
- <number>50</number>
- </property>
- </widget>
- </item>
</layout>
- </item>
- </layout>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QGroupBox" name="groupBox">
- <property name="title">
- <string>Canvas</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <layout class="QFormLayout" name="formLayout">
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
+ <string>Canvas</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="canvasWidthLabel">
<property name="text">
@@ -95,14 +66,15 @@
</property>
</widget>
</item>
- <item row="0" column="1">
- <widget class="QSpinBox" name="spinCanvasWidth">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
+ <item row="1" column="0">
+ <widget class="QLabel" name="canvasHeightLabel">
+ <property name="text">
+ <string>Height</string>
</property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QSpinBox" name="spinCanvasHeight">
<property name="maximum">
<number>100000</number>
</property>
@@ -114,21 +86,8 @@
</property>
</widget>
</item>
- <item row="1" column="0">
- <widget class="QLabel" name="canvasHeightLabel">
- <property name="text">
- <string>Height</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QSpinBox" name="spinCanvasHeight">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="spinCanvasWidth">
<property name="maximum">
<number>100000</number>
</property>
@@ -141,29 +100,129 @@
</widget>
</item>
</layout>
- </item>
- </layout>
- </widget>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="groupBox_7">
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="title">
+ <string>Styling</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
+ <item>
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Controls style:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="styleLineEdit">
+ <property name="placeholderText">
+ <string>Default style</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="resetStyle">
+ <property name="text">
+ <string>Reset Style</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
</item>
- <item row="5" column="0">
- <widget class="QGroupBox" name="groupBox_4">
+ <item>
+ <widget class="QGroupBox" name="groupBox_6">
<property name="title">
- <string>Debugging</string>
+ <string>QML Emulation Layer</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
- <layout class="QFormLayout" name="formLayout_4">
- <item row="0" column="1">
- <widget class="QCheckBox" name="designerShowDebuggerCheckBox">
+ <widget class="QRadioButton" name="useDefaultPuppetRadioButton">
+ <property name="toolTip">
+ <string>If you select this radio button, Qt Quick Designer always uses the QML emulation layer (QML Puppet) located at the following path.</string>
+ </property>
+ <property name="text">
+ <string>Use fallback QML emulation layer</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <item>
+ <widget class="QLabel" name="label_2">
<property name="text">
- <string>Show the debugging view</string>
+ <string>Path:</string>
+ </property>
+ <property name="indent">
+ <number>20</number>
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QCheckBox" name="designerEnableDebuggerCheckBox">
+ <item>
+ <widget class="Utils::PathChooser" name="fallbackPuppetPathLineEdit">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="toolTip">
+ <string>Path where Qt Creator can find the qmlpuppet (QML emulation layer) executables.</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="resetFallbackPuppetPathButton">
+ <property name="toolTip">
+ <string>Resets the path to the QML emulation layer that comes with Qt Creator.</string>
+ </property>
<property name="text">
- <string>Enable the debugging view</string>
+ <string>Reset Path</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QRadioButton" name="useQtRelatedPuppetRadioButton">
+ <property name="text">
+ <string>Use QML emulation layer that is built by the selected Qt</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Top level build path:</string>
+ </property>
+ <property name="indent">
+ <number>20</number>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="Utils::PathChooser" name="puppetBuildPathLineEdit">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="resetQmlPuppetBuildPathButton">
+ <property name="text">
+ <string>Reset Path</string>
</property>
</widget>
</item>
@@ -172,7 +231,7 @@
</layout>
</widget>
</item>
- <item row="3" column="0">
+ <item>
<widget class="QGroupBox" name="groupBox_5">
<property name="minimumSize">
<size>
@@ -194,34 +253,34 @@
</layout>
</widget>
</item>
- <item row="4" column="0">
- <widget class="QGroupBox" name="groupBox_2">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string>Warnings</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_3">
- <item>
- <layout class="QFormLayout" name="formLayout_3">
- <item row="0" column="1">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QGroupBox" name="groupBox_2">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Warnings</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="0" column="0">
<widget class="QCheckBox" name="designerWarningsCheckBox">
<property name="toolTip">
- <string>Warns about QML features which are not properly supported by the Qt Quick Designer.</string>
+ <string>Warns about QML features that are not properly supported by the Qt Quick Designer.</string>
</property>
<property name="text">
<string>Warn about unsupported features in the Qt Quick Designer</string>
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="1" column="0">
<widget class="QCheckBox" name="designerWarningsInEditorCheckBox">
<property name="toolTip">
- <string>Also warns in the code editor about QML features which are not properly supported by the Qt Quick Designer.</string>
+ <string>Also warns in the code editor about QML features that are not properly supported by the Qt Quick Designer.</string>
</property>
<property name="text">
<string>Warn about unsupported features of Qt Quick Designer in the code editor</string>
@@ -229,31 +288,81 @@
</widget>
</item>
</layout>
- </item>
- </layout>
- </widget>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="groupBox_4">
+ <property name="title">
+ <string>Debugging</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_4">
+ <item row="0" column="0">
+ <widget class="QCheckBox" name="designerShowDebuggerCheckBox">
+ <property name="text">
+ <string>Show the debugging view</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="designerEnableDebuggerCheckBox">
+ <property name="text">
+ <string>Enable the debugging view</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="1">
+ <spacer name="horizontalSpacer_3">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
</item>
- <item row="2" column="0">
- <widget class="QGroupBox" name="groupBox_6">
- <property name="title">
- <string>QML Emulation Layer</string>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
- <widget class="QCheckBox" name="designerDefaultPuppetCheckBox">
- <property name="toolTip">
- <string>If you do not select this checkbox, Qt Quick Designer uses the QML emulation layer (QML Puppet) built with the Qt configured in the build and run kit for the project.</string>
- </property>
- <property name="text">
- <string>Always use the QML emulation layer provided by Qt Creator</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
</item>
</layout>
</widget>
+ <customwidgets>
+ <customwidget>
+ <class>Utils::PathChooser</class>
+ <extends>QLineEdit</extends>
+ <header location="global">utils/pathchooser.h</header>
+ </customwidget>
+ </customwidgets>
<resources/>
<connections/>
</ui>