summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/adblock/adblocksettingwidget.cpp1
-rw-r--r--src/adblock/settings_adblock.ui19
2 files changed, 13 insertions, 7 deletions
diff --git a/src/adblock/adblocksettingwidget.cpp b/src/adblock/adblocksettingwidget.cpp
index 6d565022..a55ee506 100644
--- a/src/adblock/adblocksettingwidget.cpp
+++ b/src/adblock/adblocksettingwidget.cpp
@@ -52,7 +52,6 @@ AdBlockSettingWidget::AdBlockSettingWidget(KSharedConfig::Ptr config, QWidget *p
hintLabel->setText(i18n("<qt>Filter expression (e.g. <tt>http://www.example.com/ad/*</tt>, <a href=\"filterhelp\">more information</a>):"));
connect(hintLabel, SIGNAL(linkActivated(QString)), this, SLOT(slotInfoLinkActivated(QString)));
- manualFiltersListWidget->setSortingEnabled(true);
manualFiltersListWidget->setSelectionMode(QAbstractItemView::SingleSelection);
searchLine->setListWidget(manualFiltersListWidget);
diff --git a/src/adblock/settings_adblock.ui b/src/adblock/settings_adblock.ui
index e4f06339..c56f938b 100644
--- a/src/adblock/settings_adblock.ui
+++ b/src/adblock/settings_adblock.ui
@@ -103,7 +103,14 @@
</layout>
</item>
<item>
- <widget class="KListWidget" name="manualFiltersListWidget"/>
+ <widget class="KListWidget" name="manualFiltersListWidget">
+ <property name="dragEnabled">
+ <bool>true</bool>
+ </property>
+ <property name="dragDropMode">
+ <enum>QAbstractItemView::InternalMove</enum>
+ </property>
+ </widget>
</item>
<item>
<widget class="QLabel" name="hintLabel">
@@ -147,11 +154,6 @@
</widget>
<customwidgets>
<customwidget>
- <class>KListWidgetSearchLine</class>
- <extends>KLineEdit</extends>
- <header>klistwidgetsearchline.h</header>
- </customwidget>
- <customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
@@ -172,6 +174,11 @@
<header>ktabwidget.h</header>
<container>1</container>
</customwidget>
+ <customwidget>
+ <class>KListWidgetSearchLine</class>
+ <extends>KLineEdit</extends>
+ <header>klistwidgetsearchline.h</header>
+ </customwidget>
</customwidgets>
<resources/>
<connections/>