diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-07-21 17:30:35 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-07-21 17:30:35 +0000 |
| commit | 2111b82728e37a649539076ee4e9fc83103f196b (patch) | |
| tree | 502932f709108cd76ae393a4904e460c5dd57d0a /src/plugins/General/kdenotify | |
| parent | 6ca203336305da1b2f8b45e4dca647153da49e3c (diff) | |
| download | qmmp-2111b82728e37a649539076ee4e9fc83103f196b.tar.gz qmmp-2111b82728e37a649539076ee4e9fc83103f196b.tar.bz2 qmmp-2111b82728e37a649539076ee4e9fc83103f196b.zip | |
changed translation api again
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8200 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/kdenotify')
| -rw-r--r-- | src/plugins/General/kdenotify/kdenotifyfactory.cpp | 10 | ||||
| -rw-r--r-- | src/plugins/General/kdenotify/kdenotifyfactory.h | 3 |
2 files changed, 9 insertions, 4 deletions
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") + "<br>" - "Artur Guzik <a.guzik88@gmail.com>"); + "Artur Guzik <a.guzik88@gmail.com>"); +} + +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 |
