From b2a26c4b3d5b17f3f173ac22bf177ee1c9756562 Mon Sep 17 00:00:00 2001 From: APTX Date: Wed, 23 Feb 2022 21:33:35 +0900 Subject: [PATCH] Style fixes --- .../feature_annotations/featureannotations.cpp | 11 ++++++----- .../feature_annotations/featureannotations.h | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/featureplugins/feature_annotations/featureannotations.cpp b/featureplugins/feature_annotations/featureannotations.cpp index d268b31..2fc2daf 100644 --- a/featureplugins/feature_annotations/featureannotations.cpp +++ b/featureplugins/feature_annotations/featureannotations.cpp @@ -72,7 +72,8 @@ FeatureAnnoationsInstance::FeatureAnnoationsInstance( }); m_fpsTimer.start(); - ToggleAnnotations(); + m_enabled = true; + toggleAnnotations(); } @@ -146,12 +147,12 @@ void FeatureAnnoationsInstance::onResultReady() { } void FeatureAnnoationsInstance::onAnnotationToggle() { - enabled = !enabled; - ToggleAnnotations(); + m_enabled = !m_enabled; + toggleAnnotations(); } -void FeatureAnnoationsInstance::ToggleAnnotations() { - if (enabled) { +void FeatureAnnoationsInstance::toggleAnnotations() { + if (m_enabled) { connect(m_player, SIGNAL(frameChanged(const QImage &)), this, SLOT(onFrameChanged(const QImage &))); } else { diff --git a/featureplugins/feature_annotations/featureannotations.h b/featureplugins/feature_annotations/featureannotations.h index 1365ee5..d04c9b9 100644 --- a/featureplugins/feature_annotations/featureannotations.h +++ b/featureplugins/feature_annotations/featureannotations.h @@ -43,9 +43,9 @@ private slots: void onAnnotationToggle(); private: - void ToggleAnnotations(); + void toggleAnnotations(); - bool enabled = false; + bool m_enabled = false; QTimer m_fpsTimer; int m_fpsCounter = 0; QFutureWatcher m_watcher; -- 2.52.0