Browse Source

GUI: Streamline Properties Widget. Closes #2159

Merge select buttons and filtering into one line
adaptive-webui-19844
Alfredo Monclus 10 years ago
parent
commit
7314c57852
  1. 2
      src/properties/propertieswidget.cpp
  2. 75
      src/properties/propertieswidget.ui

2
src/properties/propertieswidget.cpp

@ -82,7 +82,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra
m_contentFilerLine = new LineEdit(this); m_contentFilerLine = new LineEdit(this);
m_contentFilerLine->setPlaceholderText(tr("Filter files...")); m_contentFilerLine->setPlaceholderText(tr("Filter files..."));
connect(m_contentFilerLine, SIGNAL(textChanged(QString)), this, SLOT(filterText(QString))); connect(m_contentFilerLine, SIGNAL(textChanged(QString)), this, SLOT(filterText(QString)));
contentFilterLayout->insertWidget(1, m_contentFilerLine); contentFilterLayout->insertWidget(4, m_contentFilerLine);
// SIGNAL/SLOTS // SIGNAL/SLOTS
connect(filesList, SIGNAL(clicked(const QModelIndex&)), filesList, SLOT(edit(const QModelIndex&))); connect(filesList, SIGNAL(clicked(const QModelIndex&)), filesList, SLOT(edit(const QModelIndex&)));

75
src/properties/propertieswidget.ui

@ -657,15 +657,16 @@
<item> <item>
<layout class="QHBoxLayout" name="contentFilterLayout"> <layout class="QHBoxLayout" name="contentFilterLayout">
<item> <item>
<widget class="QLabel" name="label_11"> <widget class="QPushButton" name="selectAllButton">
<property name="font"> <property name="text">
<font> <string>Select All</string>
<weight>75</weight>
<bold>true</bold>
</font>
</property> </property>
</widget>
</item>
<item>
<widget class="QPushButton" name="selectNoneButton">
<property name="text"> <property name="text">
<string>Torrent content:</string> <string>Select None</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -682,6 +683,22 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QLabel" name="label_11">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Torrent content:</string>
</property>
<property name="alignment">
<set>Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -700,50 +717,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<layout class="QHBoxLayout" name="_6">
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="selectAllButton">
<property name="text">
<string>Select All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="selectNoneButton">
<property name="text">
<string>Select None</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</widget> </widget>

Loading…
Cancel
Save