diff --git a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidgetborderimage.ui b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidgetborderimage.ui new file mode 100644 index 0000000000000000000000000000000000000000..756a3dcc2e90f8d55b623aa7e47edebb5f3aed52 --- /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 ae9253ace6f47c8699c76b49e982a2c3d152e58c..47f3257347f53d17967c155d0de93846e4013320 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