From af90eadf7118b9fc6aac40ba103c0f0db683ed83 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 5 Nov 2015 21:00:13 +0800 Subject: [PATCH] Cleanup "Content" page layout Limit lineEdit maximum size --- src/gui/properties/propertieswidget.cpp | 3 ++- src/gui/properties/propertieswidget.ui | 30 +++++++++++-------------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 16b8d1266..f9eb9913d 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -79,8 +79,9 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra // Torrent content filtering m_contentFilterLine = new LineEdit(this); m_contentFilterLine->setPlaceholderText(tr("Filter files...")); + m_contentFilterLine->setMaximumSize(300, m_contentFilterLine->size().height()); connect(m_contentFilterLine, SIGNAL(textChanged(QString)), this, SLOT(filterText(QString))); - contentFilterLayout->insertWidget(4, m_contentFilterLine); + contentFilterLayout->insertWidget(3, m_contentFilterLine); // SIGNAL/SLOTS connect(filesList, SIGNAL(clicked(const QModelIndex&)), filesList, SLOT(edit(const QModelIndex&))); diff --git a/src/gui/properties/propertieswidget.ui b/src/gui/properties/propertieswidget.ui index 5521c00a4..01d4e2faf 100644 --- a/src/gui/properties/propertieswidget.ui +++ b/src/gui/properties/propertieswidget.ui @@ -998,8 +998,20 @@ - + + + 0 + + + 0 + + + 0 + + + 0 + @@ -1029,22 +1041,6 @@ - - - - - 75 - true - - - - Torrent content: - - - Qt::AlignVCenter - - -