summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2013-10-01 08:01:50 +0200
committerMontel Laurent <montel@kde.org>2013-10-01 08:01:50 +0200
commitb31a6b8c7e5a1ce3c9ba4b5ee019fabd4b7cac1b (patch)
treef6bf35b144c7c0259669a96df0e5cb745717a3fa
parentUse const'ref (diff)
downloadrekonq-b31a6b8c7e5a1ce3c9ba4b5ee019fabd4b7cac1b.tar.xz
Allow to dnd manual filter.
-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/>