diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-18 20:05:11 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-18 20:05:11 +0100 |
commit | 93a1bfcdd795b436cb41d419a1aa8064b9f2987d (patch) | |
tree | 7ca2f5ab153a5ee72b6ff7ba30df3c6d00bef466 /tracker-rift-042 | |
parent | d26048617d78396cc6381eaf06f19fee484d811c (diff) |
gui, modules: add more translatable strings
Diffstat (limited to 'tracker-rift-042')
-rw-r--r-- | tracker-rift-042/ftnoir_tracker_rift_042.cpp | 12 | ||||
-rw-r--r-- | tracker-rift-042/ftnoir_tracker_rift_042.h | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.cpp b/tracker-rift-042/ftnoir_tracker_rift_042.cpp index af8a386f..6c5d6f60 100644 --- a/tracker-rift-042/ftnoir_tracker_rift_042.cpp +++ b/tracker-rift-042/ftnoir_tracker_rift_042.cpp @@ -12,17 +12,17 @@ using namespace OVR; -Rift_Tracker::Rift_Tracker() : old_yaw(0), hmd(nullptr) +rift_tracker_042::rift_tracker_042() : old_yaw(0), hmd(nullptr) { } -Rift_Tracker::~Rift_Tracker() +rift_tracker_042::~rift_tracker_042() { ovrHmd_Destroy(hmd); ovr_Shutdown(); } -void Rift_Tracker::start_tracker(QFrame*) +void rift_tracker_042::start_tracker(QFrame*) { ovr_Initialize(); hmd = ovrHmd_Create(0); @@ -34,14 +34,14 @@ void Rift_Tracker::start_tracker(QFrame*) { QMessageBox::warning(nullptr, "Error", - QStringLiteral("Unable to start Rift tracker: %1").arg(ovrHmd_GetLastError(nullptr)), + QCoreApplication::translate("rift_tracker_042", "Unable to start Rift tracker: %1").arg(ovrHmd_GetLastError(nullptr)), QMessageBox::Ok, QMessageBox::NoButton); } } -void Rift_Tracker::data(double *data) +void rift_tracker_042::data(double *data) { if (hmd) { @@ -87,4 +87,4 @@ void Rift_Tracker::data(double *data) } } -OPENTRACK_DECLARE_TRACKER(Rift_Tracker, dialog_rift_042, rift_042Dll) +OPENTRACK_DECLARE_TRACKER(rift_tracker_042, dialog_rift_042, rift_042Dll) diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.h b/tracker-rift-042/ftnoir_tracker_rift_042.h index ed802da0..82081085 100644 --- a/tracker-rift-042/ftnoir_tracker_rift_042.h +++ b/tracker-rift-042/ftnoir_tracker_rift_042.h @@ -21,11 +21,11 @@ struct settings : opts { {} }; -class Rift_Tracker : public ITracker +class rift_tracker_042 : public ITracker { public: - Rift_Tracker(); - virtual ~Rift_Tracker() override; + rift_tracker_042(); + virtual ~rift_tracker_042() override; void start_tracker(QFrame *) override; void data(double *data) override; private: |