Browse Source

FEATURE: Torrent content list is now sortable

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
f25b198516
  1. 1
      Changelog
  2. 1
      src/properties/propertieswidget.cpp
  3. 9
      src/torrentadditiondlg.ui

1
Changelog

@ -7,6 +7,7 @@
- FEATURE: Added option to bypass Web UI authentication for localhost - FEATURE: Added option to bypass Web UI authentication for localhost
- FEATURE: Added option to disable program exit confirmation - FEATURE: Added option to disable program exit confirmation
- FEATURE: Added per-torrent ratio limiting (Christian Kandeler) - FEATURE: Added per-torrent ratio limiting (Christian Kandeler)
- FEATURE: Torrent content list is now sortable
- BUGFIX: Fix compilation with namespaced Qt (Christian Kandeler) - BUGFIX: Fix compilation with namespaced Qt (Christian Kandeler)
- OTHER: Make QtDBus dependency optional (X11) - OTHER: Make QtDBus dependency optional (X11)

1
src/properties/propertieswidget.cpp

@ -77,6 +77,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra
filesList->setModel(PropListModel); filesList->setModel(PropListModel);
PropDelegate = new PropListDelegate(this); PropDelegate = new PropListDelegate(this);
filesList->setItemDelegate(PropDelegate); filesList->setItemDelegate(PropDelegate);
filesList->setSortingEnabled(true);
// Torrent content filtering // Torrent content filtering
m_contentFilerLine = new LineEdit(this); m_contentFilerLine = new LineEdit(this);
connect(m_contentFilerLine, SIGNAL(textChanged(QString)), PropListModel, SLOT(setFilterFixedString(QString))); connect(m_contentFilerLine, SIGNAL(textChanged(QString)), PropListModel, SLOT(setFilterFixedString(QString)));

9
src/torrentadditiondlg.ui

@ -205,12 +205,15 @@
<property name="contextMenuPolicy"> <property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum> <enum>Qt::CustomContextMenu</enum>
</property> </property>
<property name="editTriggers">
<set>QAbstractItemView::AllEditTriggers</set>
</property>
<property name="selectionMode"> <property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum> <enum>QAbstractItemView::ExtendedSelection</enum>
</property> </property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item> <item>

Loading…
Cancel
Save