From 7d3e903db0926f989896807829aa8f0c30dfa4db Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 30 Mar 2016 22:09:50 +0800 Subject: [PATCH] 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. --- src/gui/addnewtorrentdialog.ui | 258 ++++++++++++++++----------------- 1 file changed, 128 insertions(+), 130 deletions(-) diff --git a/src/gui/addnewtorrentdialog.ui b/src/gui/addnewtorrentdialog.ui index 8c15a435d..689bbe354 100644 --- a/src/gui/addnewtorrentdialog.ui +++ b/src/gui/addnewtorrentdialog.ui @@ -129,12 +129,6 @@ - - - 0 - 0 - - Category: @@ -142,11 +136,11 @@ - - - 140 - 0 - + + + 0 + 0 + true @@ -175,27 +169,17 @@ - - - - Qt::Horizontal - - - - 0 - 0 - - - - Qt::Horizontal + + QSizePolicy::Fixed + - 0 + 35 0 @@ -209,109 +193,28 @@ Torrent information - - - - - - - Size: - - - - - - - - - - Date: - - - - - - - - - - Hash: - - - - - - - Qt::TextSelectableByMouse - - - - - - - Comment: - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - - QFrame::NoFrame - - - true - - - - - 0 - 0 - 299 - 73 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - Qt::RichText - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - true - - - true - - - Qt::TextBrowserInteraction - - - - - - - - + + + + + + + + Qt::PlainText + + + Qt::TextSelectableByMouse + + - + + + + Hash: + + + + Qt::CustomContextMenu @@ -324,6 +227,100 @@ + + + + + + + + + + + Date: + + + + + + + Size: + + + + + + + + + + + + + + Comment: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + + + + + QFrame::NoFrame + + + true + + + + + 0 + 0 + 301 + 73 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + Qt::RichText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + true + + + Qt::TextBrowserInteraction + + + + + + + @@ -393,17 +390,18 @@ - savePathComboBox - browseButton simpleModeRadioButton advancedModeRadioButton + savePathComboBox + browseButton defaultSavePathCheckBox never_show_cb adv_button startTorrentCheckBox + skip_check_cb categoryComboBox defaultCategoryCheckbox - skip_check_cb + scrollArea contentTreeView