From 93a1bfcdd795b436cb41d419a1aa8064b9f2987d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 18 Nov 2016 20:05:11 +0100 Subject: gui, modules: add more translatable strings --- tracker-rift-140/impl.cpp | 12 ++++++------ tracker-rift-140/rift-140.hpp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tracker-rift-140') 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: -- cgit v1.2.3