Removed some more nested redundant QHBoxLayout/QVBoxLayout/QWidget were it is safe to remove them.

This commit is contained in:
PKEuS 2012-12-06 19:00:38 +01:00
parent 77bab29809
commit ae447a192a
3 changed files with 84 additions and 94 deletions

View File

@ -52,11 +52,7 @@
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <widget class="ResultsView" name="mResults" native="true"/>
<item>
<widget class="ResultsView" name="mResults" native="true"/>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -225,56 +225,52 @@
<attribute name="title"> <attribute name="title">
<string>Applications</string> <string>Applications</string>
</attribute> </attribute>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <widget class="QListWidget" name="mListWidget"/>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<widget class="QListWidget" name="mListWidget"/> <widget class="QPushButton" name="mBtnAddApplication">
<property name="text">
<string>Add...</string>
</property>
</widget>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <widget class="QPushButton" name="mBtnEditApplication">
<item> <property name="text">
<widget class="QPushButton" name="mBtnAddApplication"> <string>Edit...</string>
<property name="text"> </property>
<string>Add...</string> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QPushButton" name="mBtnRemoveApplication">
<item> <property name="text">
<widget class="QPushButton" name="mBtnEditApplication"> <string>Remove</string>
<property name="text"> </property>
<string>Edit...</string> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QPushButton" name="mBtnDefaultApplication">
<item> <property name="text">
<widget class="QPushButton" name="mBtnRemoveApplication"> <string>Set as default</string>
<property name="text"> </property>
<string>Remove</string> </widget>
</property> </item>
</widget> <item>
</item> <spacer name="verticalSpacer_4">
<item> <property name="orientation">
<widget class="QPushButton" name="mBtnDefaultApplication"> <enum>Qt::Vertical</enum>
<property name="text"> </property>
<string>Set as default</string> <property name="sizeHint" stdset="0">
</property> <size>
</widget> <width>20</width>
</item> <height>40</height>
<item> </size>
<spacer name="verticalSpacer_4"> </property>
<property name="orientation"> </spacer>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
</layout> </layout>
</item> </item>

View File

@ -341,49 +341,47 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QWidget" name="widget" native="true"> <layout class="QHBoxLayout" name="horizontalLayout">
<layout class="QHBoxLayout" name="horizontalLayout"> <property name="margin">
<property name="margin"> <number>0</number>
<number>0</number> </property>
</property> <item>
<item> <spacer name="horizontalSpacer">
<spacer name="horizontalSpacer"> <property name="orientation">
<property name="orientation"> <enum>Qt::Horizontal</enum>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="sizeHint" stdset="0">
<property name="sizeHint" stdset="0"> <size>
<size> <width>40</width>
<width>40</width> <height>20</height>
<height>20</height> </size>
</size> </property>
</property> </spacer>
</spacer> </item>
</item> <item>
<item> <widget class="QPushButton" name="mCopyToClipboard">
<widget class="QPushButton" name="mCopyToClipboard"> <property name="text">
<property name="text"> <string>Copy to Clipboard</string>
<string>Copy to Clipboard</string> </property>
</property> </widget>
</widget> </item>
</item> <item>
<item> <widget class="QDialogButtonBox" name="mButtonBox">
<widget class="QDialogButtonBox" name="mButtonBox"> <property name="sizePolicy">
<property name="sizePolicy"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <horstretch>0</horstretch>
<horstretch>0</horstretch> <verstretch>0</verstretch>
<verstretch>0</verstretch> </sizepolicy>
</sizepolicy> </property>
</property> <property name="orientation">
<property name="orientation"> <enum>Qt::Horizontal</enum>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="standardButtons">
<property name="standardButtons"> <set>QDialogButtonBox::Close</set>
<set>QDialogButtonBox::Close</set> </property>
</property> </widget>
</widget> </item>
</item> </layout>
</layout>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>