summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii/wii_module.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:23:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:23:52 +0200
commitc0165f8b48852a1aca782d606ba4f1ea48eee6ba (patch)
tree433441689808ca741889b078407bc49fade746de /tracker-wii/wii_module.cpp
parenteb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff)
modules: now use i18n
Diffstat (limited to 'tracker-wii/wii_module.cpp')
-rw-r--r--tracker-wii/wii_module.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/tracker-wii/wii_module.cpp b/tracker-wii/wii_module.cpp
index 5ef75f57..9f2a4b04 100644
--- a/tracker-wii/wii_module.cpp
+++ b/tracker-wii/wii_module.cpp
@@ -6,11 +6,12 @@
* copyright notice and this permission notice appear in all copies.
*/
#include "ftnoir_tracker_pt.h"
-#include "api/plugin-api.hpp"
+#include "wii_module.hpp"
#include "wii_camera.h"
#include "wii_frame.hpp"
#include "wii_point_extractor.h"
+#include "wii_module.hpp"
#include "ftnoir_tracker_pt_dialog.h"
#include "pt-api.hpp"
@@ -62,18 +63,20 @@ struct wii_dialog_pt : TrackerDialog_PT
wii_dialog_pt();
};
-class wii_metadata_pt : public Metadata
+QString wii_metadata_pt::name()
{
- QString name() { return _("WiiPointTracker 1.1"); }
- QIcon icon() { return QIcon(":/Resources/wii.png"); }
-};
+ return tr("WiiPointTracker 1.1");
+}
+
+QIcon wii_metadata_pt::icon()
+{
+ return QIcon(":/Resources/wii.png");
+}
// ns pt_module
using namespace pt_module;
-
-
wii_dialog_pt::wii_dialog_pt() : TrackerDialog_PT(module_name)
{
ui.tabWidget->removeTab(0);