diff options
Diffstat (limited to 'src/plugins/General/hal')
| -rw-r--r-- | src/plugins/General/hal/halfactory.cpp | 8 | ||||
| -rw-r--r-- | src/plugins/General/hal/halfactory.h | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/General/hal/halfactory.cpp b/src/plugins/General/hal/halfactory.cpp index 6046ba105..400e2caa0 100644 --- a/src/plugins/General/hal/halfactory.cpp +++ b/src/plugins/General/hal/halfactory.cpp @@ -24,12 +24,11 @@ #include "halplugin.h" #include "halfactory.h" -const GeneralProperties HalFactory::properties() const +GeneralProperties HalFactory::properties() const { GeneralProperties properties; properties.name = tr("HAL Plugin"); properties.shortName = "hal"; - properties.translation = QLatin1String(":/hal_plugin_"); properties.hasAbout = true; properties.hasSettings = true; properties.visibilityControl = false; @@ -54,3 +53,8 @@ void HalFactory::showAbout(QWidget *parent) tr("Written by: Ilya Kotov <forkotov02@ya.ru>") + "\n" + tr("Based on Solid (KDE hardware library)")); } + +QString HalFactory::translation() const +{ + return QLatin1String(":/hal_plugin_"); +} diff --git a/src/plugins/General/hal/halfactory.h b/src/plugins/General/hal/halfactory.h index a2b8b5ed9..195b3c42c 100644 --- a/src/plugins/General/hal/halfactory.h +++ b/src/plugins/General/hal/halfactory.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 |
