From 0006966c0f307ec7dff51130ce26bbe3c7061418 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 21 Jul 2018 14:38:08 +0000 Subject: changed translation api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8196 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/kdenotify/kdenotifyfactory.cpp | 9 +-------- src/plugins/General/kdenotify/kdenotifyfactory.h | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'src/plugins/General/kdenotify') diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.cpp b/src/plugins/General/kdenotify/kdenotifyfactory.cpp index c36ec0675..1597f3eb6 100644 --- a/src/plugins/General/kdenotify/kdenotifyfactory.cpp +++ b/src/plugins/General/kdenotify/kdenotifyfactory.cpp @@ -28,6 +28,7 @@ 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; @@ -50,11 +51,3 @@ void KdeNotifyFactory::showAbout(QWidget *parent) tr("KDE notification plugin for Qmmp") + "
" "Artur Guzik "); } - -QTranslator *KdeNotifyFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = Qmmp::systemLanguageID(); - translator->load(QString(":/kdenotify_plugin_") + locale); - return translator; -} diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.h b/src/plugins/General/kdenotify/kdenotifyfactory.h index 1c6f7543a..083a95e6c 100644 --- a/src/plugins/General/kdenotify/kdenotifyfactory.h +++ b/src/plugins/General/kdenotify/kdenotifyfactory.h @@ -22,7 +22,6 @@ #define KDENOTIFYFACTORY_H #include -#include #include #include @@ -38,7 +37,6 @@ public: QObject *create(QObject *parent); QDialog *createConfigDialog(QWidget *parent); void showAbout(QWidget *parent); - QTranslator *createTranslator(QObject *parent); }; #endif // KDENOTIFYFACTORY_H -- cgit v1.2.3-13-gbd6f