Commit 753b1a2b authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Constify variable

parent 8be08947
......@@ -17,8 +17,6 @@ Kirigami.ScrollablePage
property string device
ListView {
id: sinkList
anchors.fill: parent
model: PluginModel {
......@@ -26,9 +24,6 @@ Kirigami.ScrollablePage
}
delegate: Kirigami.SwipeListItem {
width: parent.width
enabled: true
supportsMouseEvents: false
CheckBox {
checked: isChecked
......@@ -58,7 +53,4 @@ Kirigami.ScrollablePage
]
}
}
}
......@@ -51,7 +51,7 @@ QVariant PluginModel::data(const QModelIndex &index, int role) const
switch (role) {
case Qt::CheckStateRole:
{
QString def = pluginEntry.isEnabledByDefault() ? QStringLiteral("true") : QStringLiteral("false");
const QString def = pluginEntry.isEnabledByDefault() ? QStringLiteral("true") : QStringLiteral("false");
return m_config->group("Plugins").readEntry(QStringLiteral("%1Enabled").arg(pluginEntry.pluginId()), def) == QStringLiteral("true");
}
case Qt::DisplayRole:
......
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