From 99061d92c18e4b5f62215980ec455c06d7d98669 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 20 Jul 2022 14:41:00 +0800 Subject: [PATCH] Fix "Add torrent dialog" spill-over on smaller screens Done by adding an QScrollArea to the layout. Closes #17387. --- src/gui/addnewtorrentdialog.ui | 829 +++++++++++++++++---------------- 1 file changed, 437 insertions(+), 392 deletions(-) diff --git a/src/gui/addnewtorrentdialog.ui b/src/gui/addnewtorrentdialog.ui index 845dad783..8f1cfe56a 100644 --- a/src/gui/addnewtorrentdialog.ui +++ b/src/gui/addnewtorrentdialog.ui @@ -12,15 +12,26 @@ - - - Qt::Horizontal + + + QFrame::NoFrame - - false + + QAbstractScrollArea::AdjustToContents - - + + true + + + + + 0 + 0 + 868 + 644 + + + 0 @@ -34,417 +45,451 @@ 0 - - - - - Torrent Management Mode: + + + Qt::Horizontal + + + false + + + + + 0 - - - - - - Automatic mode means that various torrent properties(eg save path) will be decided by the associated category + + 0 - - - Manual - - - - - Automatic - - - - - - - - Qt::Horizontal + + 0 - - - 20 - 20 - + + 0 - - - - - - - - Save at - - - - - - - - - Use another path for incomplete torrent - - - true - - - false - - + + - + + + Torrent Management Mode: + + + + + + + Automatic mode means that various torrent properties(eg save path) will be decided by the associated category + + + + Manual + + + + + Automatic + + + + + + + + Qt::Horizontal + + + + 20 + 20 + + + - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Remember last used save path - - - - - - - - - - - - Torrent settings - - - - - - - - Category: - - - - - - - - 0 - 0 - - - - true - - - QComboBox::InsertAtTop - - - - - - - - - Set as default category - - - - - - - - - When checked, the .torrent file will not be deleted regardless of the settings at the "Download" page of the Options dialog - - - Do not delete .torrent file - - - - - - - Download first and last pieces first - - - - - - - Skip hash check - - - - - - - Download in sequential order - - - - - - - Start torrent - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Content layout: - - - - - - - 0 - + + + + + Save at + + - - Original - + - - Create subfolder - + + + Use another path for incomplete torrent + + + true + + + false + + + + + + + - - Don't create subfolder - + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Remember last used save path + + + + + + + + + + + + Torrent settings + + + + + + + + Category: + + + + + + + + 0 + 0 + + + + true + + + QComboBox::InsertAtTop + + + + + + + + + Set as default category + + + + + + + + + When checked, the .torrent file will not be deleted regardless of the settings at the "Download" page of the Options dialog + + + Do not delete .torrent file + + + + + + + Download first and last pieces first + + + + + + + Skip hash check + + + + + + + Download in sequential order + + + + + + + Start torrent + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - 0 - 0 - - - - Torrent information - - - - - - Info hash v1: - - - - - - - - - - - - - QFrame::NoFrame - - - true - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - Qt::RichText + + + + + Content layout: + + + + + + + 0 + + + + Original + + + + + Create subfolder + + + + + Don't create subfolder + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + 0 + 0 + + + + Torrent information + + + + + + Info hash v1: + + + + + + + + + + + + + QFrame::NoFrame + + + QAbstractScrollArea::AdjustToContents + + + true + + + + + 0 + 0 + 392 + 68 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Qt::RichText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + true + + + Qt::TextBrowserInteraction + + + + + + + + + + + Comment: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - true + + + + + + Size: - - true + + + + + + Qt::TextSelectableByMouse + + + + + + + Date: + + + + + + + Info hash v2: + + + + - Qt::TextBrowserInteraction + Qt::TextSelectableByMouse - - - - - - Comment: - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - - Size: - - - - - - - Qt::TextSelectableByMouse - - - - - - - Date: - - - - - - - Info hash v2: - - - - - - - Qt::TextSelectableByMouse - - - - - - - - - - - - - - - - Select All - - - - - - - Select None - - - - - - - Qt::Horizontal - - - QSizePolicy::Maximum - - - - 165 - 20 - - - - - - - - - - - 1 - 0 - - - - Qt::CustomContextMenu - - - QAbstractItemView::ExtendedSelection - - - true - + + + + + + + + + + + Select All + + + + + + + Select None + + + + + + + Qt::Horizontal + + + + 165 + 20 + + + + + + + + + + + 1 + 0 + + + + Qt::CustomContextMenu + + + QAbstractItemView::ExtendedSelection + + + true + + + + +