From: APTX Date: Wed, 23 Feb 2022 12:33:35 +0000 (+0900) Subject: Style fixes X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=b2a26c4b3d5b17f3f173ac22bf177ee1c9756562;p=aniplayer.git Style fixes --- 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;