});
m_fpsTimer.start();
- ToggleAnnotations();
+ m_enabled = true;
+ toggleAnnotations();
}
}
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 {
void onAnnotationToggle();
private:
- void ToggleAnnotations();
+ void toggleAnnotations();
- bool enabled = false;
+ bool m_enabled = false;
QTimer m_fpsTimer;
int m_fpsCounter = 0;
QFutureWatcher<PlayerFeaturePluginInterface::AnnotationList> m_watcher;