From e29f9b9b1ede2967031255a7bd23625aedc493c3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 29 Oct 2014 01:09:49 +0100 Subject: work around global 'ptr' symbol clash with opencv Issue: #89 Reported-by: @runningman84 --- facetracknoir/ui.cpp | 4 ++-- facetracknoir/ui.h | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'facetracknoir') diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index f340b1ff..66e7c80f 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -330,11 +330,11 @@ void MainWindow::showHeadPose() } template -ptr mk_dialog(ptr lib) +mem mk_dialog(mem lib) { if (lib) { - auto dialog = ptr(reinterpret_cast(lib->Dialog())); + auto dialog = mem(reinterpret_cast(lib->Dialog())); dialog->setWindowFlags(Qt::Dialog); dialog->setFixedSize(dialog->size()); return dialog; diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h index 4158e29e..3f607726 100644 --- a/facetracknoir/ui.h +++ b/facetracknoir/ui.h @@ -62,25 +62,25 @@ class MainWindow : public QMainWindow, private State Q_OBJECT Ui::OpentrackUI ui; - ptr tray; + mem tray; QTimer pose_update_timer; - ptr shortcuts_widget; - ptr mapping_widget; + mem shortcuts_widget; + mem mapping_widget; QShortcut kbd_quit; QPixmap no_feed_pixmap; - ptr pFilterDialog; - ptr pProtocolDialog; - ptr pTrackerDialog; + mem pFilterDialog; + mem pProtocolDialog; + mem pTrackerDialog; - ptr current_tracker() + mem current_tracker() { return modules.trackers().value(ui.iconcomboTrackerSource->currentIndex(), nullptr); } - ptr current_protocol() + mem current_protocol() { return modules.protocols().value(ui.iconcomboProtocol->currentIndex(), nullptr); } - ptr current_filter() + mem current_filter() { return modules.filters().value(ui.iconcomboFilter->currentIndex(), nullptr); } -- cgit v1.2.3