Fix deprecated warnings for KAboutData
Ctor with catalog name got deprecated, use ctor without it.icc-effect-5.14.5
parent
7091452acd
commit
ee20101142
|
@ -93,7 +93,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
|
||||||
layout->addWidget(m_ui);
|
layout->addWidget(m_ui);
|
||||||
|
|
||||||
KAboutData *about =
|
KAboutData *about =
|
||||||
new KAboutData(i18n("kcmkwindecoration"), QString(),
|
new KAboutData(QStringLiteral("kcmkwindecoration"),
|
||||||
i18n("Window Decoration Control Module"),
|
i18n("Window Decoration Control Module"),
|
||||||
QString(), QString(), KAboutData::License_GPL,
|
QString(), QString(), KAboutData::License_GPL,
|
||||||
i18n("(c) 2001 Karol Szwed"));
|
i18n("(c) 2001 Karol Szwed"));
|
||||||
|
|
|
@ -551,7 +551,7 @@ void KWinDesktopConfig::slotAboutEffectClicked()
|
||||||
const QString license = pluginInfo.license();
|
const QString license = pluginInfo.license();
|
||||||
const QString icon = pluginInfo.icon();
|
const QString icon = pluginInfo.icon();
|
||||||
|
|
||||||
KAboutData aboutData(name, name, name, version, comment, KAboutLicense::byKeyword(license).key(), QString(), QString(), website.toLatin1());
|
KAboutData aboutData(name, name, version, comment, KAboutLicense::byKeyword(license).key(), QString(), QString(), website.toLatin1());
|
||||||
aboutData.setProgramIconName(icon);
|
aboutData.setProgramIconName(icon);
|
||||||
const QStringList authors = author.split(',');
|
const QStringList authors = author.split(',');
|
||||||
const QStringList emails = email.split(',');
|
const QStringList emails = email.split(',');
|
||||||
|
@ -568,7 +568,6 @@ void KWinDesktopConfig::slotAboutEffectClicked()
|
||||||
} else {
|
} else {
|
||||||
const BuiltInEffects::EffectData &data = BuiltInEffects::effectData(builtIn);
|
const BuiltInEffects::EffectData &data = BuiltInEffects::effectData(builtIn);
|
||||||
KAboutData aboutData(data.name,
|
KAboutData aboutData(data.name,
|
||||||
QString(),
|
|
||||||
data.displayName,
|
data.displayName,
|
||||||
QStringLiteral(KWIN_VERSION_STRING),
|
QStringLiteral(KWIN_VERSION_STRING),
|
||||||
data.comment,
|
data.comment,
|
||||||
|
|
|
@ -99,7 +99,7 @@ KWinOptions::KWinOptions(QWidget *parent, const QVariantList &)
|
||||||
connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
|
connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
|
||||||
|
|
||||||
KAboutData *about =
|
KAboutData *about =
|
||||||
new KAboutData(i18n("kcmkwinoptions"), QString(), i18n("Window Behavior Configuration Module"),
|
new KAboutData(QStringLiteral("kcmkwinoptions"), i18n("Window Behavior Configuration Module"),
|
||||||
QString(), QString(), KAboutData::License_GPL,
|
QString(), QString(), KAboutData::License_GPL,
|
||||||
i18n("(c) 1997 - 2002 KWin and KControl Authors"));
|
i18n("(c) 1997 - 2002 KWin and KControl Authors"));
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ KCMRules::KCMRules(QWidget *parent, const QVariantList &)
|
||||||
widget = new KCMRulesList(this);
|
widget = new KCMRulesList(this);
|
||||||
layout->addWidget(widget);
|
layout->addWidget(widget);
|
||||||
connect(widget, SIGNAL(changed(bool)), SLOT(moduleChanged(bool)));
|
connect(widget, SIGNAL(changed(bool)), SLOT(moduleChanged(bool)));
|
||||||
KAboutData *about = new KAboutData(i18n("kcmkwinrules"), QString(),
|
KAboutData *about = new KAboutData(QStringLiteral("kcmkwinrules"),
|
||||||
i18n("Window-Specific Settings Configuration Module"),
|
i18n("Window-Specific Settings Configuration Module"),
|
||||||
QString(), QString(), KAboutData::License_GPL, i18n("(c) 2004 KWin and KControl Authors"));
|
QString(), QString(), KAboutData::License_GPL, i18n("(c) 2004 KWin and KControl Authors"));
|
||||||
about->addAuthor(i18n("Lubos Lunak"), QString(), "l.lunak@kde.org");
|
about->addAuthor(i18n("Lubos Lunak"), QString(), "l.lunak@kde.org");
|
||||||
|
|
|
@ -46,7 +46,7 @@ Module::Module(QWidget *parent, const QVariantList &args) :
|
||||||
ui(new Ui::Module),
|
ui(new Ui::Module),
|
||||||
m_kwinConfig(KSharedConfig::openConfig("kwinrc"))
|
m_kwinConfig(KSharedConfig::openConfig("kwinrc"))
|
||||||
{
|
{
|
||||||
KAboutData *about = new KAboutData("kwin-scripts", QString(),
|
KAboutData *about = new KAboutData("kwin-scripts",
|
||||||
i18n("KWin Scripts"),
|
i18n("KWin Scripts"),
|
||||||
global_s_versionStringFull,
|
global_s_versionStringFull,
|
||||||
i18n("Configure KWin scripts"),
|
i18n("Configure KWin scripts"),
|
||||||
|
|
1
main.cpp
1
main.cpp
|
@ -487,7 +487,6 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
|
||||||
a.setApplicationDisplayName(i18n("KWin"));
|
a.setApplicationDisplayName(i18n("KWin"));
|
||||||
|
|
||||||
KAboutData aboutData(QStringLiteral(KWIN_NAME), // The program name used internally
|
KAboutData aboutData(QStringLiteral(KWIN_NAME), // The program name used internally
|
||||||
QString(), // The message catalog name. If null, program name is used instead
|
|
||||||
i18n("KWin"), // A displayable program name string
|
i18n("KWin"), // A displayable program name string
|
||||||
QStringLiteral(KWIN_VERSION_STRING), // The program version string
|
QStringLiteral(KWIN_VERSION_STRING), // The program version string
|
||||||
i18n(description), // Short description of what the app does
|
i18n(description), // Short description of what the app does
|
||||||
|
|
Loading…
Reference in New Issue