Browse Source

Improved RSS filters sorting code

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
a60615a2d8
  1. 3
      src/feeddownloader.h
  2. 17
      src/ui/feeddownloader.ui

3
src/feeddownloader.h

@ -259,7 +259,6 @@ public: @@ -259,7 +259,6 @@ public:
// Restore saved info
enableDl_cb->setChecked(filters.isDownloadingEnabled());
fillFiltersList();
filtersList->sortItems(Qt::AscendingOrder);
if(filters.size() > 0) {
// Select first filter
filtersList->setCurrentItem(filtersList->item(0));
@ -386,7 +385,6 @@ protected slots: @@ -386,7 +385,6 @@ protected slots:
if(selected_filter == current_name)
selected_filter = new_name;
item->setText(new_name);
filtersList->sortItems(Qt::AscendingOrder);
}
}
@ -440,7 +438,6 @@ protected slots: @@ -440,7 +438,6 @@ protected slots:
}
}while(!validated);
QListWidgetItem *it = new QListWidgetItem(filter_name, filtersList);
filtersList->sortItems(Qt::AscendingOrder);
filtersList->setCurrentItem(it);
//showFilterSettings(it);
}

17
src/ui/feeddownloader.ui

@ -120,6 +120,9 @@ @@ -120,6 +120,9 @@
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item>
@ -143,7 +146,7 @@ @@ -143,7 +146,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="icons.qrc">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/list-remove.png</normaloff>:/Icons/oxygen/list-remove.png</iconset>
</property>
</widget>
@ -170,7 +173,7 @@ @@ -170,7 +173,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="icons.qrc">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/list-add.png</normaloff>:/Icons/oxygen/list-add.png</iconset>
</property>
</widget>
@ -396,7 +399,7 @@ @@ -396,7 +399,7 @@
</font>
</property>
<property name="text">
<string> </string>
<string/>
</property>
</widget>
</item>
@ -474,7 +477,7 @@ @@ -474,7 +477,7 @@
</layout>
<action name="actionRename_filter">
<property name="icon">
<iconset resource="icons.qrc">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/edit_clear.png</normaloff>:/Icons/oxygen/edit_clear.png</iconset>
</property>
<property name="text">
@ -486,7 +489,7 @@ @@ -486,7 +489,7 @@
</action>
<action name="actionRemove_filter">
<property name="icon">
<iconset resource="icons.qrc">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/list-remove.png</normaloff>:/Icons/oxygen/list-remove.png</iconset>
</property>
<property name="text">
@ -498,7 +501,7 @@ @@ -498,7 +501,7 @@
</action>
<action name="actionAdd_filter">
<property name="icon">
<iconset resource="icons.qrc">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/list-add.png</normaloff>:/Icons/oxygen/list-add.png</iconset>
</property>
<property name="text">
@ -507,7 +510,7 @@ @@ -507,7 +510,7 @@
</action>
</widget>
<resources>
<include location="icons.qrc"/>
<include location="../icons.qrc"/>
</resources>
<connections>
<connection>

Loading…
Cancel
Save