diff options
Diffstat (limited to 'src/plugins/General/gnomehotkey')
| -rw-r--r-- | src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp | 8 | ||||
| -rw-r--r-- | src/plugins/General/gnomehotkey/gnomehotkeyfactory.h | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp index 5e9ba1c7b..e22d2d9e9 100644 --- a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp +++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp @@ -23,12 +23,11 @@ #include "mediakeys.h" #include "gnomehotkeyfactory.h" -const GeneralProperties GnomeHotkeyFactory::properties() const +GeneralProperties GnomeHotkeyFactory::properties() const { GeneralProperties properties; properties.name = tr("Gnome Hotkey Plugin"); properties.shortName = "gnomehotkey"; - properties.translation = QLatin1String(":/gnomehotkey_plugin_"); properties.hasAbout = true; properties.hasSettings = false; properties.visibilityControl = false; @@ -53,3 +52,8 @@ void GnomeHotkeyFactory::showAbout(QWidget *parent) tr("This plugin adds support of the GNOME/Cinnamon hotkeys") + "\n" + tr("Written by: Ilya Kotov <forkotov02@ya.ru>")); } + +QString GnomeHotkeyFactory::translation() const +{ + return QLatin1String(":/gnomehotkey_plugin_"); +} diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h index ebe082435..d119143b0 100644 --- a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h +++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h @@ -34,10 +34,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 |
