summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-140
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-18 20:05:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-18 20:05:11 +0100
commit93a1bfcdd795b436cb41d419a1aa8064b9f2987d (patch)
tree7ca2f5ab153a5ee72b6ff7ba30df3c6d00bef466 /tracker-rift-140
parentd26048617d78396cc6381eaf06f19fee484d811c (diff)
gui, modules: add more translatable strings
Diffstat (limited to 'tracker-rift-140')
-rw-r--r--tracker-rift-140/impl.cpp12
-rw-r--r--tracker-rift-140/rift-140.hpp6
2 files changed, 9 insertions, 9 deletions
diff --git a/tracker-rift-140/impl.cpp b/tracker-rift-140/impl.cpp
index 67d5bb47..48aaa10a 100644
--- a/tracker-rift-140/impl.cpp
+++ b/tracker-rift-140/impl.cpp
@@ -8,11 +8,11 @@
using namespace OVR;
-Rift_Tracker::Rift_Tracker() : old_yaw(0), hmd(nullptr)
+rift_tracker_140::rift_tracker_140() : old_yaw(0), hmd(nullptr)
{
}
-Rift_Tracker::~Rift_Tracker()
+rift_tracker_140::~rift_tracker_140()
{
if (hmd)
{
@@ -21,7 +21,7 @@ Rift_Tracker::~Rift_Tracker()
}
}
-void Rift_Tracker::start_tracker(QFrame*)
+void rift_tracker_140::start_tracker(QFrame*)
{
if (OVR_FAILURE(ovr_Initialize(nullptr)))
goto error;
@@ -44,12 +44,12 @@ error:
QMessageBox::warning(nullptr,
"Error",
- QStringLiteral("Unable to start Rift tracker: %1").arg(strerror),
+ QCoreApplication::translate("rift_tracker_140", "Unable to start Rift tracker: %1").arg(strerror),
QMessageBox::Ok,
QMessageBox::NoButton);
}
-void Rift_Tracker::data(double *data)
+void rift_tracker_140::data(double *data)
{
if (hmd)
{
@@ -94,4 +94,4 @@ void Rift_Tracker::data(double *data)
}
}
-OPENTRACK_DECLARE_TRACKER(Rift_Tracker, dialog_rift_140, rift_140Dll)
+OPENTRACK_DECLARE_TRACKER(rift_tracker_140, dialog_rift_140, rift_140Dll)
diff --git a/tracker-rift-140/rift-140.hpp b/tracker-rift-140/rift-140.hpp
index 23ec6fb3..47eb7cd2 100644
--- a/tracker-rift-140/rift-140.hpp
+++ b/tracker-rift-140/rift-140.hpp
@@ -20,11 +20,11 @@ struct settings : opts {
{}
};
-class Rift_Tracker : public ITracker
+class rift_tracker_140 : public ITracker
{
public:
- Rift_Tracker();
- ~Rift_Tracker() override;
+ rift_tracker_140();
+ ~rift_tracker_140() override;
void start_tracker(QFrame *) override;
void data(double *data) override;
private: