Browse Source

Merge pull request #17407 from Chocobo1/addtorrent

Fix "Add torrent dialog" spill-over on smaller screens
adaptive-webui-19844
Chocobo1 2 years ago committed by GitHub
parent
commit
3567ae3529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 55
      src/gui/addnewtorrentdialog.ui
  2. 2
      src/gui/properties/propertieswidget.cpp

55
src/gui/addnewtorrentdialog.ui

@ -7,10 +7,43 @@ @@ -7,10 +7,43 @@
<x>0</x>
<y>0</y>
<width>900</width>
<height>620</height>
<height>680</height>
</rect>
</property>
<layout class="QVBoxLayout" name="AddNewTorrentDialogLayout">
<item>
<widget class="QScrollArea" name="scrollArea_2">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>882</width>
<height>598</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
@ -302,10 +335,21 @@ @@ -302,10 +335,21 @@
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>411</width>
<height>70</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin">
<number>0</number>
@ -415,12 +459,9 @@ @@ -415,12 +459,9 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>165</width>
<width>40</width>
<height>20</height>
</size>
</property>
@ -451,6 +492,10 @@ @@ -451,6 +492,10 @@
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="buttonsHLayout">
<item>

2
src/gui/properties/propertieswidget.cpp

@ -646,7 +646,7 @@ void PropertiesWidget::displayFilesListMenu() @@ -646,7 +646,7 @@ void PropertiesWidget::displayFilesListMenu()
menu->addAction(UIThemeManager::instance()->getIcon(u"folder-documents"_qs), tr("Open")
, this, [this, index]() { openItem(index); });
menu->addAction(UIThemeManager::instance()->getIcon(u"inode-directory"_qs), tr("Open Containing Folder")
menu->addAction(UIThemeManager::instance()->getIcon(u"inode-directory"_qs), tr("Open containing folder")
, this, [this, index]() { openParentFolder(index); });
menu->addAction(UIThemeManager::instance()->getIcon(u"edit-rename"_qs), tr("Rename...")
, this, [this]() { m_ui->filesList->renameSelectedFile(*m_torrent); });

Loading…
Cancel
Save