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/ftnoir_tracker_rift_042.cpp | |
parent | d26048617d78396cc6381eaf06f19fee484d811c (diff) |
gui, modules: add more translatable strings
Diffstat (limited to 'tracker-rift-042/ftnoir_tracker_rift_042.cpp')
-rw-r--r-- | tracker-rift-042/ftnoir_tracker_rift_042.cpp | 12 |
1 files changed, 6 insertions, 6 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) |