From 7c67c2beb26398d1e815f6eab9408dc91f73c278 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Fri, 30 Jul 2010 14:29:41 +0200 Subject: [PATCH] QuickToolBar: new ui file --- .../contextpanewidgetborderimage.ui | 310 ++++++++++++++++++ .../propertyeditor/propertyeditor.pri | 3 +- 2 files changed, 312 insertions(+), 1 deletion(-) create mode 100644 src/plugins/qmldesigner/components/propertyeditor/contextpanewidgetborderimage.ui diff --git a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidgetborderimage.ui b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidgetborderimage.ui new file mode 100644 index 00000000000..756a3dcc2e9 --- /dev/null +++ b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidgetborderimage.ui @@ -0,0 +1,310 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ContextPaneWidgetBorderImage</class> + <widget class="QWidget" name="ContextPaneWidgetBorderImage"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>300</width> + <height>97</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <property name="toolTip"> + <string/> + </property> + <layout class="QGridLayout" name="gridLayout_3"> + <property name="margin"> + <number>1</number> + </property> + <property name="spacing"> + <number>2</number> + </property> + <item row="0" column="0" rowspan="3"> + <widget class="QLabel" name="label"> + <property name="minimumSize"> + <size> + <width>76</width> + <height>76</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>76</width> + <height>76</height> + </size> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="Base"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>57</red> + <green>57</green> + <blue>57</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="Base"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>57</red> + <green>57</green> + <blue>57</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="Base"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>57</red> + <green>57</green> + <blue>57</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>57</red> + <green>57</green> + <blue>57</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="autoFillBackground"> + <bool>true</bool> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="FileWidget" name="fileWidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QWidget" name="widget_2" native="true"> + <layout class="QGridLayout" name="gridLayout_2"> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QRadioButton" name="horizontalStretchRadioButton"> + <property name="toolTip"> + <string>Scale the image to fit to the available area.</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../resources/resources.qrc"> + <normaloff>:/qmldesigner/images/horizontal-scale-icon.png</normaloff>:/qmldesigner/images/horizontal-scale-icon.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QRadioButton" name="horizontalTileRadioButton"> + <property name="toolTip"> + <string>Tile the image until there is no more space. May crop the last image.</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../resources/resources.qrc"> + <normaloff>:/qmldesigner/images/tile-icon-hor-crop.png</normaloff>:/qmldesigner/images/tile-icon-hor-crop.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QRadioButton" name="horizontalTileRadioButtonNoCrop"> + <property name="toolTip"> + <string>Like Repeat, but scales the images down to ensure that the last image is not cropped.</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../resources/resources.qrc"> + <normaloff>:/qmldesigner/images/tile-icon-hor - scale.png</normaloff>:/qmldesigner/images/tile-icon-hor - scale.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="2" column="1"> + <widget class="QWidget" name="widget" native="true"> + <layout class="QGridLayout" name="gridLayout"> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="1"> + <widget class="QRadioButton" name="verticalTileRadioButton"> + <property name="toolTip"> + <string>Tile the image until there is no more space. May crop the last image.</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../resources/resources.qrc"> + <normaloff>:/qmldesigner/images/tile-icon-vert-crop.png</normaloff>:/qmldesigner/images/tile-icon-vert-crop.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QRadioButton" name="verticalStretchRadioButton"> + <property name="toolTip"> + <string>Scale the image to fit to the available area.</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../resources/resources.qrc"> + <normaloff>:/qmldesigner/images/vertical-scale-icon.png</normaloff>:/qmldesigner/images/vertical-scale-icon.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QRadioButton" name="verticalTileRadioButtonNoCrop"> + <property name="toolTip"> + <string>Like Repeat, but scales the images down to ensure that the last image is not cropped.</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../resources/resources.qrc"> + <normaloff>:/qmldesigner/images/tile-icon-vert-scale.png</normaloff>:/qmldesigner/images/tile-icon-vert-scale.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="sizeLabel"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>10 x 10</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + <customwidgets> + <customwidget> + <class>FileWidget</class> + <extends>QComboBox</extends> + <header location="global">filewidget.h</header> + </customwidget> + </customwidgets> + <resources> + <include location="../resources/resources.qrc"/> + </resources> + <connections/> +</ui> diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.pri b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.pri index ae9253ace6f..47f3257347f 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.pri +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.pri @@ -56,4 +56,5 @@ RESOURCES += propertyeditor.qrc FORMS += behaviordialog.ui \ contextpanetext.ui \ contextpanewidgetrectangle.ui \ - contextpanewidgetimage.ui + contextpanewidgetimage.ui \ + contextpanewidgetborderimage.ui -- GitLab