]> git.sesse.net Git - kdenlive/blobdiff - src/scopes/abstractscopewidget.cpp
normalize signal/slots
[kdenlive] / src / scopes / abstractscopewidget.cpp
index ca20e14a4465b63f3318d52247f195d02b665b9d..f21bcd83afd2034e4cfbf259e8d958ba625207a5 100644 (file)
@@ -50,21 +50,24 @@ const QPen AbstractScopeWidget::penBackground(QBrush(dark2),
 const QString AbstractScopeWidget::directions[] =  {"North", "Northeast", "East", "Southeast"};
 
 AbstractScopeWidget::AbstractScopeWidget(bool trackMouse, QWidget *parent) :
-        QWidget(parent),
-        m_mousePos(0, 0),
-        m_mouseWithinWidget(false),
-        offset(5),
-        m_accelFactorHUD(1),
-        m_accelFactorScope(1),
-        m_accelFactorBackground(1),
-        m_semaphoreHUD(1),
-        m_semaphoreScope(1),
-        m_semaphoreBackground(1),
-        initialDimensionUpdateDone(false),
-        m_requestForcedUpdate(false),
-        m_rescaleMinDist(4),
-        m_rescaleVerticalThreshold(2.0f),
-        m_rescaleActive(false)
+        QWidget(parent)
+        , m_mousePos(0, 0)
+        , m_mouseWithinWidget(false)
+        , offset(5)
+        , m_accelFactorHUD(1)
+        , m_accelFactorScope(1)
+        , m_accelFactorBackground(1)
+        , m_semaphoreHUD(1)
+        , m_semaphoreScope(1)
+        , m_semaphoreBackground(1)
+        , initialDimensionUpdateDone(false)
+        , m_requestForcedUpdate(false)
+        , m_rescaleMinDist(4)
+        , m_rescaleVerticalThreshold(2.0f)
+        , m_rescaleActive(false)
+       , m_rescalePropertiesLocked(false)
+       , m_rescaleFirstRescaleDone(true)
+       , m_rescaleDirection(North)
 
 {
     m_scopePalette = QPalette();
@@ -93,9 +96,9 @@ AbstractScopeWidget::AbstractScopeWidget(bool trackMouse, QWidget *parent) :
     bool b = true;
     b &= connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(customContextMenuRequested(QPoint)));
 
-    b &= connect(this, SIGNAL(signalHUDRenderingFinished(uint, uint)), this, SLOT(slotHUDRenderingFinished(uint, uint)));
-    b &= connect(this, SIGNAL(signalScopeRenderingFinished(uint, uint)), this, SLOT(slotScopeRenderingFinished(uint, uint)));
-    b &= connect(this, SIGNAL(signalBackgroundRenderingFinished(uint, uint)), this, SLOT(slotBackgroundRenderingFinished(uint, uint)));
+    b &= connect(this, SIGNAL(signalHUDRenderingFinished(uint,uint)), this, SLOT(slotHUDRenderingFinished(uint,uint)));
+    b &= connect(this, SIGNAL(signalScopeRenderingFinished(uint,uint)), this, SLOT(slotScopeRenderingFinished(uint,uint)));
+    b &= connect(this, SIGNAL(signalBackgroundRenderingFinished(uint,uint)), this, SLOT(slotBackgroundRenderingFinished(uint,uint)));
     b &= connect(m_aRealtime, SIGNAL(toggled(bool)), this, SLOT(slotResetRealtimeFactor(bool)));
     b &= connect(m_aAutoRefresh, SIGNAL(toggled(bool)), this, SLOT(slotAutoRefreshToggled(bool)));
     Q_ASSERT(b);