From 2111b82728e37a649539076ee4e9fc83103f196b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 21 Jul 2018 17:30:35 +0000 Subject: changed translation api again git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8200 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/kdenotify/kdenotifyfactory.cpp | 10 +++++++--- src/plugins/General/kdenotify/kdenotifyfactory.h | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/plugins/General/kdenotify') diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.cpp b/src/plugins/General/kdenotify/kdenotifyfactory.cpp index 1597f3eb6..9d55ec451 100644 --- a/src/plugins/General/kdenotify/kdenotifyfactory.cpp +++ b/src/plugins/General/kdenotify/kdenotifyfactory.cpp @@ -23,12 +23,11 @@ #include "kdenotify.h" #include "settingsdialog.h" -const GeneralProperties KdeNotifyFactory::properties() const +GeneralProperties KdeNotifyFactory::properties() const { GeneralProperties properties; properties.name = tr("KDE notification plugin"); properties.shortName = "kdenotify_icon"; - properties.translation = QLatin1String(":/kdenotify_plugin_"); properties.hasAbout = true; properties.hasSettings = true; properties.visibilityControl = false; @@ -49,5 +48,10 @@ void KdeNotifyFactory::showAbout(QWidget *parent) { QMessageBox::about (parent, tr("About KDE Notification Plugin"), tr("KDE notification plugin for Qmmp") + "
" - "Artur Guzik "); + "Artur Guzik "); +} + +QString KdeNotifyFactory::translation() const +{ + return QLatin1String(":/kdenotify_plugin_"); } diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.h b/src/plugins/General/kdenotify/kdenotifyfactory.h index 083a95e6c..9d4e76c57 100644 --- a/src/plugins/General/kdenotify/kdenotifyfactory.h +++ b/src/plugins/General/kdenotify/kdenotifyfactory.h @@ -33,10 +33,11 @@ Q_OBJECT Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0") Q_INTERFACES(GeneralFactory) public: - const GeneralProperties properties() const; + GeneralProperties properties() const; QObject *create(QObject *parent); QDialog *createConfigDialog(QWidget *parent); void showAbout(QWidget *parent); + QString translation() const; }; #endif // KDENOTIFYFACTORY_H -- cgit v1.2.3-13-gbd6f