Printing: fix TemplateEdit layout

Make the TemplateEdit dialog resizable.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-07-26 08:34:32 +02:00 committed by Lubomir I. Ivanov
parent e8ad4b0c97
commit 61a8ac09b0

View file

@ -6,37 +6,85 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>774</width> <width>770</width>
<height>433</height> <height>433</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Edit Template</string> <string>Edit Template</string>
</property> </property>
<widget class="QDialogButtonBox" name="buttonBox"> <layout class="QVBoxLayout" name="verticalLayout_8">
<property name="geometry"> <item>
<rect> <layout class="QHBoxLayout" name="horizontalLayout_10">
<x>400</x> <item>
<y>380</y> <layout class="QVBoxLayout" name="verticalLayout_3">
<width>341</width> <item>
<height>32</height> <spacer name="verticalSpacer_4">
</rect>
</property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="standardButtons"> <property name="sizeHint" stdset="0">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> <size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Preview</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>180</width>
<height>240</height>
</size>
</property>
<property name="baseSize">
<size>
<width>180</width>
<height>254</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="geometry"> <property name="autoFillBackground">
<rect> <bool>false</bool>
<x>300</x>
<y>30</y>
<width>441</width>
<height>331</height>
</rect>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>0</number>
@ -45,15 +93,8 @@
<attribute name="title"> <attribute name="title">
<string>Style</string> <string>Style</string>
</attribute> </attribute>
<widget class="QWidget" name="verticalLayoutWidget"> <layout class="QHBoxLayout" name="horizontalLayout_11">
<property name="geometry"> <item>
<rect>
<x>10</x>
<y>20</y>
<width>401</width>
<height>171</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4">
@ -168,22 +209,30 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<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>
</layout>
</item>
</layout> </layout>
</widget>
</widget> </widget>
<widget class="QWidget" name="template_2"> <widget class="QWidget" name="template_2">
<attribute name="title"> <attribute name="title">
<string>Template</string> <string>Template</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QPlainTextEdit" name="plainTextEdit"> <widget class="QPlainTextEdit" name="plainTextEdit">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>441</width>
<height>301</height>
</rect>
</property>
<property name="horizontalScrollBarPolicy"> <property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum> <enum>Qt::ScrollBarAsNeeded</enum>
</property> </property>
@ -191,20 +240,21 @@
<enum>QPlainTextEdit::NoWrap</enum> <enum>QPlainTextEdit::NoWrap</enum>
</property> </property>
</widget> </widget>
</item>
</layout>
</widget> </widget>
<widget class="QWidget" name="color_tab"> <widget class="QWidget" name="color_tab">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<attribute name="title"> <attribute name="title">
<string>Colors</string> <string>Colors</string>
</attribute> </attribute>
<widget class="QWidget" name="verticalLayoutWidget_2"> <layout class="QHBoxLayout" name="horizontalLayout_12">
<property name="geometry"> <item>
<rect>
<x>10</x>
<y>30</y>
<width>411</width>
<height>171</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_5"> <layout class="QHBoxLayout" name="horizontalLayout_5">
@ -406,36 +456,38 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</widget> </widget>
</widget> </item>
<widget class="QLabel" name="label_5"> </layout>
<property name="geometry"> </item>
<rect> <item>
<x>30</x> <widget class="QDialogButtonBox" name="buttonBox">
<y>30</y> <property name="orientation">
<width>59</width> <enum>Qt::Horizontal</enum>
<height>14</height>
</rect>
</property> </property>
<property name="text"> <property name="standardButtons">
<string>Preview</string> <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>50</x>
<y>70</y>
<width>211</width>
<height>291</height>
</rect>
</property>
<property name="text">
<string/>
</property> </property>
</widget> </widget>
</item>
</layout>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>