summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Caulier <[email protected]>2014-11-27 14:01:20 +0100
committerGilles Caulier <[email protected]>2014-11-27 14:01:20 +0100
commit052ebddc2d3382219edb0fccd07b048291c6f77b (patch)
treea1960bbe32bb242b27c24016dde3b9f5c8813727
parent85ad7518b7b3a2787b538dafb394a4ff87bed468 (diff)
port ++
-rw-r--r--src/configwidget.cpp21
-rw-r--r--src/configwidget_p.cpp2
2 files changed, 14 insertions, 9 deletions
diff --git a/src/configwidget.cpp b/src/configwidget.cpp
index 63111dd..c281e55 100644
--- a/src/configwidget.cpp
+++ b/src/configwidget.cpp
@@ -29,6 +29,7 @@
// Qt include
+#include <QApplication>
#include <QPushButton>
#include <QGridLayout>
#include <QLabel>
@@ -37,7 +38,6 @@
// KDE includes
-#include <kdialog.h>
#include <ktoolinvocation.h>
#include <kstandarddirs.h>
#include <kurllabel.h>
@@ -164,8 +164,8 @@ ConfigWidget::ConfigWidget(QWidget* const parent)
d->grid->addWidget(d->kipiLogoLabel, 0, 6, 2, 1);
d->grid->addWidget(d->pluginsList, 2, 0, 1, -1);
d->grid->setColumnStretch(3, 10);
- d->grid->setMargin(KDialog::spacingHint());
- d->grid->setSpacing(KDialog::spacingHint());
+ d->grid->setMargin(QApplication::style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing));
+ d->grid->setSpacing(QApplication::style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing));
// --------------------------------------------------------
@@ -177,15 +177,20 @@ ConfigWidget::ConfigWidget(QWidget* const parent)
// --------------------------------------------------------
- connect(d->checkAllBtn, &QPushButton::clicked, this, &ConfigWidget::slotCheckAll);
+ connect(d->checkAllBtn, &QPushButton::clicked,
+ this, &ConfigWidget::slotCheckAll);
- connect(d->clearBtn, &QPushButton::clicked, this, &ConfigWidget::slotClearList);
+ connect(d->clearBtn, &QPushButton::clicked,
+ this, &ConfigWidget::slotClearList);
- connect(d->pluginsList, &PluginListView::itemClicked, this, &ConfigWidget::slotItemClicked);
+ connect(d->pluginsList, &PluginListView::itemClicked,
+ this, &ConfigWidget::slotItemClicked);
- connect(d->pluginsList, &PluginListView::signalSearchResult, this, &ConfigWidget::signalSearchResult);
+ connect(d->pluginsList, &PluginListView::signalSearchResult,
+ this, &ConfigWidget::signalSearchResult);
- connect(d->kipiLogoLabel, static_cast<void (KUrlLabel::*)(const QString &)>(&KUrlLabel::leftClickedUrl), this, &ConfigWidget::slotProcessUrl);
+ connect(d->kipiLogoLabel, static_cast<void (KUrlLabel::*)(const QString &)>(&KUrlLabel::leftClickedUrl),
+ this, &ConfigWidget::slotProcessUrl);
// --------------------------------------------------------
diff --git a/src/configwidget_p.cpp b/src/configwidget_p.cpp
index e0f05cf..e5b79aa 100644
--- a/src/configwidget_p.cpp
+++ b/src/configwidget_p.cpp
@@ -158,7 +158,7 @@ void PluginListView::slotApply()
group.writeEntry(item->m_info->uname(), load);
item->m_info->setShouldLoad(load);
- // Bugfix #289779 - Plugins are not really freed / unplugged when disabled in the kipi setup dialog, always call reload()
+ // See Bug #289779 - Plugins are not really freed / unplugged when disabled in the kipi setup dialog, always call reload()
// to reload plugins properly when the replug() signal is send.
item->m_info->reload();
}