Commit 0d6da5eb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reduce duplicate code

parent 8db8d345
......@@ -21,7 +21,7 @@ include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
include(ECMInstallIcons)
set(PIM_VERSION "5.3.50")
set(PIM_VERSION "5.3.51")
set(PIMCOMMON_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.3.40")
......
......@@ -122,3 +122,10 @@ void ConfigurePluginsListWidget::fillTopItems(const QVector<PimCommon::PluginUti
}
}
void ConfigurePluginsListWidget::changeState(const QList<PluginItem *> &items)
{
Q_FOREACH (PluginItem *item, items) {
item->setCheckState(0, item->mEnableByDefault ? Qt::Checked : Qt::Unchecked);
}
}
......@@ -61,6 +61,8 @@ protected:
};
void savePlugins(const QString &groupName, const QString &prefixSettingKey, const QList<PluginItem *> &listItems);
void fillTopItems(const QVector<PimCommon::PluginUtilData> &lst, const QString &topLevelItemName, const QString &groupName, const QString &prefixKey, QList<PluginItem *> &itemsList);
void changeState(const QList<PluginItem *> &items);
QTreeWidget *mListWidget;
};
}
......
Supports Markdown
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