summaryrefslogtreecommitdiffhomepage
path: root/proto-mouse
diff options
context:
space:
mode:
Diffstat (limited to 'proto-mouse')
-rw-r--r--proto-mouse/ftnoir_protocol_mouse.cpp2
-rw-r--r--proto-mouse/ftnoir_protocol_mouse.h10
2 files changed, 8 insertions, 4 deletions
diff --git a/proto-mouse/ftnoir_protocol_mouse.cpp b/proto-mouse/ftnoir_protocol_mouse.cpp
index b4b27ea9..9e782384 100644
--- a/proto-mouse/ftnoir_protocol_mouse.cpp
+++ b/proto-mouse/ftnoir_protocol_mouse.cpp
@@ -60,7 +60,7 @@ void mouse::pose(const double *headpose)
QString mouse::game_name()
{
- return otr_tr("Mouse tracker");
+ return tr("Mouse tracker");
}
int mouse::get_delta(int val, int prev)
diff --git a/proto-mouse/ftnoir_protocol_mouse.h b/proto-mouse/ftnoir_protocol_mouse.h
index 55b26fe5..22e78b69 100644
--- a/proto-mouse/ftnoir_protocol_mouse.h
+++ b/proto-mouse/ftnoir_protocol_mouse.h
@@ -10,13 +10,16 @@
#include "ui_ftnoir_mousecontrols.h"
#include "mouse-settings.hpp"
+#include "compat/tr.hpp"
#include <QDebug>
#include "api/plugin-api.hpp"
using namespace options;
-class mouse : public IProtocol
+class mouse : public TR, public IProtocol
{
+ Q_OBJECT
+
public:
mouse();
module_status initialize() override { return status_ok(); }
@@ -48,7 +51,8 @@ private slots:
class mouseDll : public Metadata
{
-public:
- QString name() { return otr_tr("mouse emulation"); }
+ Q_OBJECT
+
+ QString name() { return tr("mouse emulation"); }
QIcon icon() { return QIcon(":/images/mouse.png"); }
};