Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit fc23cb30 authored by Laurent Montel's avatar Laurent Montel 😁

Use QStringLiteral

parent 05621000
......@@ -37,9 +37,9 @@ Translations::Translations(QObject *parent, const QVariantList &args)
, m_availableTranslationsModel(new AvailableTranslationsModel(this))
, m_everSaved(false)
{
KAboutData *about = new KAboutData("kcm_translations",
KAboutData *about = new KAboutData(QStringLiteral("kcm_translations"),
i18n("Configure Plasma translations"),
"2.0", QString(), KAboutLicense::LGPL);
QStringLiteral("2.0"), QString(), KAboutLicense::LGPL);
setAboutData(about);
setButtons(Apply | Default);
......@@ -82,7 +82,7 @@ bool Translations::everSaved() const
void Translations::load()
{
m_configuredLanguages = m_config.readEntry(lcLanguage,
QString()).split(':', QString::SkipEmptyParts);
QString()).split(QLatin1Char(':'), QString::SkipEmptyParts);
m_selectedTranslationsModel->setSelectedLanguages(m_configuredLanguages);
}
......
......@@ -41,7 +41,7 @@ class Translations : public KQuickAddons::ConfigModule
Q_PROPERTY(bool everSaved READ everSaved NOTIFY everSavedChanged)
public:
explicit Translations(QObject* parent = 0, const QVariantList &list = QVariantList());
explicit Translations(QObject* parent = nullptr, const QVariantList &list = QVariantList());
~Translations() override;
QAbstractItemModel* translationsModel() const;
......@@ -51,9 +51,9 @@ class Translations : public KQuickAddons::ConfigModule
bool everSaved() const;
public Q_SLOTS:
void load();
void save();
void defaults();
void load() override;
void save() override;
void defaults() override;
Q_SIGNALS:
void everSavedChanged() const;
......
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