From daa0cc1348c40d7f654621f6a82b01934129a79f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 21 Nov 2016 11:08:48 +0100 Subject: tracker/{test,steamvr}: fix duplicate class names It breaks translation. --- tracker-test/test.cpp | 8 ++++---- tracker-test/test.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tracker-test') diff --git a/tracker-test/test.cpp b/tracker-test/test.cpp index eba1f603..78c72178 100644 --- a/tracker-test/test.cpp +++ b/tracker-test/test.cpp @@ -77,7 +77,7 @@ void test_tracker::data(double *data) } } -dialog::dialog() +test_dialog::test_dialog() { ui.setupUi(this); @@ -85,15 +85,15 @@ dialog::dialog() connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); } -void dialog::doOK() +void test_dialog::doOK() { //s.b->save(); close(); } -void dialog::doCancel() +void test_dialog::doCancel() { close(); } -OPENTRACK_DECLARE_TRACKER(test_tracker, dialog, metadata) +OPENTRACK_DECLARE_TRACKER(test_tracker, test_dialog, test_metadata) diff --git a/tracker-test/test.h b/tracker-test/test.h index fd446f98..8338e8f3 100644 --- a/tracker-test/test.h +++ b/tracker-test/test.h @@ -22,13 +22,13 @@ private: Timer t; }; -class dialog: public ITrackerDialog +class test_dialog : public ITrackerDialog { Q_OBJECT Ui::test_ui ui; public: - dialog(); + test_dialog(); void register_tracker(ITracker *) override {} void unregister_tracker() override {} private slots: @@ -36,10 +36,10 @@ private slots: void doCancel(); }; -class metadata : public Metadata +class test_metadata : public Metadata { public: - QString name() { return QString(QCoreApplication::translate("metadata", "Testing - sine wave")); } + QString name() { return QString(QCoreApplication::translate("test_metadata", "Testing - sine wave")); } QIcon icon() { return QIcon(":/images/facetracknoir.png"); } }; -- cgit v1.2.3