Fix deprecated warnings for KAboutData
Ctor with catalog name got deprecated, use ctor without it.
This commit is contained in:
parent
7091452acd
commit
ee20101142
6 changed files with 5 additions and 7 deletions
|
@ -93,7 +93,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
|
|||
layout->addWidget(m_ui);
|
||||
|
||||
KAboutData *about =
|
||||
new KAboutData(i18n("kcmkwindecoration"), QString(),
|
||||
new KAboutData(QStringLiteral("kcmkwindecoration"),
|
||||
i18n("Window Decoration Control Module"),
|
||||
QString(), QString(), KAboutData::License_GPL,
|
||||
i18n("(c) 2001 Karol Szwed"));
|
||||
|
|
|
@ -551,7 +551,7 @@ void KWinDesktopConfig::slotAboutEffectClicked()
|
|||
const QString license = pluginInfo.license();
|
||||
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);
|
||||
const QStringList authors = author.split(',');
|
||||
const QStringList emails = email.split(',');
|
||||
|
@ -568,7 +568,6 @@ void KWinDesktopConfig::slotAboutEffectClicked()
|
|||
} else {
|
||||
const BuiltInEffects::EffectData &data = BuiltInEffects::effectData(builtIn);
|
||||
KAboutData aboutData(data.name,
|
||||
QString(),
|
||||
data.displayName,
|
||||
QStringLiteral(KWIN_VERSION_STRING),
|
||||
data.comment,
|
||||
|
|
|
@ -99,7 +99,7 @@ KWinOptions::KWinOptions(QWidget *parent, const QVariantList &)
|
|||
connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
|
||||
|
||||
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,
|
||||
i18n("(c) 1997 - 2002 KWin and KControl Authors"));
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ KCMRules::KCMRules(QWidget *parent, const QVariantList &)
|
|||
widget = new KCMRulesList(this);
|
||||
layout->addWidget(widget);
|
||||
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"),
|
||||
QString(), QString(), KAboutData::License_GPL, i18n("(c) 2004 KWin and KControl Authors"));
|
||||
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),
|
||||
m_kwinConfig(KSharedConfig::openConfig("kwinrc"))
|
||||
{
|
||||
KAboutData *about = new KAboutData("kwin-scripts", QString(),
|
||||
KAboutData *about = new KAboutData("kwin-scripts",
|
||||
i18n("KWin Scripts"),
|
||||
global_s_versionStringFull,
|
||||
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"));
|
||||
|
||||
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
|
||||
QStringLiteral(KWIN_VERSION_STRING), // The program version string
|
||||
i18n(description), // Short description of what the app does
|
||||
|
|
Loading…
Reference in a new issue