Browse Source

Fix resizing bug in "add torrent dialog". Closes #5036.

1. Place all widgets in "Torrent information" into the same grid layout
instead of different layouts.
2. Tweak tab order.
adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
7d3e903db0
  1. 122
      src/gui/addnewtorrentdialog.ui

122
src/gui/addnewtorrentdialog.ui

@ -129,12 +129,6 @@
<layout class="QHBoxLayout" name="horizontalLayout_1"> <layout class="QHBoxLayout" name="horizontalLayout_1">
<item> <item>
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Category:</string> <string>Category:</string>
</property> </property>
@ -142,11 +136,11 @@
</item> </item>
<item> <item>
<widget class="QComboBox" name="categoryComboBox"> <widget class="QComboBox" name="categoryComboBox">
<property name="minimumSize"> <property name="sizePolicy">
<size> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<width>140</width> <horstretch>0</horstretch>
<height>0</height> <verstretch>0</verstretch>
</size> </sizepolicy>
</property> </property>
<property name="editable"> <property name="editable">
<bool>true</bool> <bool>true</bool>
@ -175,27 +169,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1"> <item row="0" column="1">
<spacer name="horizontalSpacer2"> <spacer name="horizontalSpacer2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>0</width> <width>35</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -209,18 +193,46 @@
<property name="title"> <property name="title">
<string>Torrent information</string> <string>Torrent information</string>
</property> </property>
<layout class="QVBoxLayout" name="infoGroupLayout"> <layout class="QGridLayout" name="gridLayout_2">
<item> <item row="2" column="1">
<layout class="QGridLayout" name="gridLayout"> <widget class="QLabel" name="lblhash">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Size:</string> <string/>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="textInteractionFlags">
<set>Qt::TextSelectableByMouse</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="2" column="0">
<widget class="QLabel" name="size_lbl"/> <widget class="QLabel" name="label_4">
<property name="text">
<string>Hash:</string>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="TorrentContentTreeView" name="contentTreeView">
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="date_lbl">
<property name="text">
<string/>
</property>
</widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
@ -229,20 +241,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="0" column="0">
<widget class="QLabel" name="date_lbl"/> <widget class="QLabel" name="label">
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
<string>Hash:</string> <string>Size:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="0" column="1">
<widget class="QLabel" name="lblhash"> <widget class="QLabel" name="size_lbl">
<property name="textInteractionFlags"> <property name="text">
<set>Qt::TextSelectableByMouse</set> <string/>
</property> </property>
</widget> </widget>
</item> </item>
@ -269,7 +278,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>299</width> <width>301</width>
<height>73</height> <height>73</height>
</rect> </rect>
</property> </property>
@ -288,6 +297,9 @@
</property> </property>
<item> <item>
<widget class="QLabel" name="commentLabel"> <widget class="QLabel" name="commentLabel">
<property name="text">
<string/>
</property>
<property name="textFormat"> <property name="textFormat">
<enum>Qt::RichText</enum> <enum>Qt::RichText</enum>
</property> </property>
@ -310,21 +322,6 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
<item>
<widget class="TorrentContentTreeView" name="contentTreeView">
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>
@ -393,17 +390,18 @@
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops> <tabstops>
<tabstop>savePathComboBox</tabstop>
<tabstop>browseButton</tabstop>
<tabstop>simpleModeRadioButton</tabstop> <tabstop>simpleModeRadioButton</tabstop>
<tabstop>advancedModeRadioButton</tabstop> <tabstop>advancedModeRadioButton</tabstop>
<tabstop>savePathComboBox</tabstop>
<tabstop>browseButton</tabstop>
<tabstop>defaultSavePathCheckBox</tabstop> <tabstop>defaultSavePathCheckBox</tabstop>
<tabstop>never_show_cb</tabstop> <tabstop>never_show_cb</tabstop>
<tabstop>adv_button</tabstop> <tabstop>adv_button</tabstop>
<tabstop>startTorrentCheckBox</tabstop> <tabstop>startTorrentCheckBox</tabstop>
<tabstop>skip_check_cb</tabstop>
<tabstop>categoryComboBox</tabstop> <tabstop>categoryComboBox</tabstop>
<tabstop>defaultCategoryCheckbox</tabstop> <tabstop>defaultCategoryCheckbox</tabstop>
<tabstop>skip_check_cb</tabstop> <tabstop>scrollArea</tabstop>
<tabstop>contentTreeView</tabstop> <tabstop>contentTreeView</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>

Loading…
Cancel
Save