Commit 67b53edd authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Laurent Montel
Browse files

Remove unneeded implementation of configModules method

The plugins are now loaded from a specific namespace
parent 3d0fcc9c
Pipeline #66922 passed with stage
in 24 minutes and 15 seconds
......@@ -219,8 +219,3 @@ bool SummaryWidget::eventFilter(QObject *obj, QEvent *e)
return KontactInterface::Summary::eventFilter(obj, e);
}
QStringList SummaryWidget::configModules() const
{
return QStringList() << QStringLiteral("kcmkmailsummary.desktop");
}
......@@ -42,8 +42,6 @@ public:
Q_REQUIRED_RESULT int summaryHeight() const override;
Q_REQUIRED_RESULT QStringList configModules() const override;
protected:
bool eventFilter(QObject *obj, QEvent *e) override;
......
......@@ -422,26 +422,6 @@ void SummaryViewPart::slotConfigure()
delete dlg;
}
QStringList SummaryViewPart::configModules() const
{
QStringList modules;
QMap<QString, KontactInterface::Summary *>::ConstIterator it;
QMap<QString, KontactInterface::Summary *>::ConstIterator end(mSummaries.constEnd());
for (it = mSummaries.constBegin(); it != end; ++it) {
QStringList cm = it.value()->configModules();
QStringList::ConstIterator strIt;
QStringList::ConstIterator strEnd(cm.constEnd());
for (strIt = cm.constBegin(); strIt != strEnd; ++strIt) {
if (!(*strIt).isEmpty() && !modules.contains(*strIt)) {
modules.append(*strIt);
}
}
}
return modules;
}
void SummaryViewPart::initGUI(KontactInterface::Core *core)
{
auto sa = new QScrollArea(core);
......
......@@ -60,7 +60,6 @@ private:
void saveLayout();
QString widgetName(QWidget *) const;
QStringList configModules() const;
void drawLtoR(QWidget *target, QWidget *widget, int alignment);
void drawRtoL(QWidget *target, QWidget *widget, int alignment);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment