diff --git a/kcms/ksplash/kcm.h b/kcms/ksplash/kcm.h --- a/kcms/ksplash/kcm.h +++ b/kcms/ksplash/kcm.h @@ -39,14 +39,14 @@ public: enum Roles { PluginNameRole = Qt::UserRole +1, - ScreenhotRole, + ScreenshotRole, DescriptionRole }; KCMSplashScreen(QObject* parent, const QVariantList& args); QList availablePackages(const QString &component); - QStandardItemModel *splashModel(); + QStandardItemModel *splashModel() const; QString selectedPlugin() const; void setSelectedPlugin(const QString &plugin); diff --git a/kcms/ksplash/kcm.cpp b/kcms/ksplash/kcm.cpp --- a/kcms/ksplash/kcm.cpp +++ b/kcms/ksplash/kcm.cpp @@ -55,7 +55,7 @@ m_model = new QStandardItemModel(this); QHash roles = m_model->roleNames(); roles[PluginNameRole] = "pluginName"; - roles[ScreenhotRole] = "screenshot"; + roles[ScreenshotRole] = "screenshot"; roles[DescriptionRole] = "description"; m_model->setItemRoleNames(roles); loadModel(); @@ -84,7 +84,7 @@ return packages; } -QStandardItemModel *KCMSplashScreen::splashModel() +QStandardItemModel *KCMSplashScreen::splashModel() const { return m_model; } @@ -127,7 +127,7 @@ for (const Plasma::Package &pkg : pkgs) { QStandardItem* row = new QStandardItem(pkg.metadata().name()); row->setData(pkg.metadata().pluginName(), PluginNameRole); - row->setData(pkg.filePath("previews", QStringLiteral("splash.png")), ScreenhotRole); + row->setData(pkg.filePath("previews", QStringLiteral("splash.png")), ScreenshotRole); row->setData(pkg.metadata().comment(), DescriptionRole); m_model->appendRow(row); } @@ -207,13 +207,13 @@ m_testProcess = new QProcess(this); connect(m_testProcess, &QProcess::errorOccurred, this, [this](QProcess::ProcessError error) { - Q_UNUSED(error); + Q_UNUSED(error) emit testingFailed(); }); connect(m_testProcess, QOverload::of(&QProcess::finished), this, [this](int exitCode, QProcess::ExitStatus exitStatus) { - Q_UNUSED(exitCode); - Q_UNUSED(exitStatus); + Q_UNUSED(exitCode) + Q_UNUSED(exitStatus) m_testProcess->deleteLater(); m_testProcess = nullptr;