summaryrefslogtreecommitdiffstats
path: root/src/widget/wpushbutton.cpp
diff options
context:
space:
mode:
authorronso0 <ronso0@mixxx.org>2019-11-30 16:39:37 +0100
committerronso0 <ronso0@mixxx.org>2019-11-30 16:39:37 +0100
commit350fd05451835a1735d7c38814b780fdbadc467c (patch)
treef895ecc2347ec2cc14d9095b1fd35490ec12bcf0 /src/widget/wpushbutton.cpp
parentc556808e8ba2816a533e35c63c55eb10e6635f32 (diff)
use emitValue for consistency
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r--src/widget/wpushbutton.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp
index ddf1c7a5e9..613b4bbe51 100644
--- a/src/widget/wpushbutton.cpp
+++ b/src/widget/wpushbutton.cpp
@@ -351,8 +351,8 @@ void WPushButton::mousePressEvent(QMouseEvent * e) {
m_clickTimer.setSingleShot(true);
m_clickTimer.start(ControlPushButtonBehavior::kPowerWindowTimeMillis);
- double value = getControlParameterLeft() == 0.0 ? 1.0 : 0.0;
- setControlParameterLeftDown(value);
+ double emitValue = getControlParameterLeft() == 0.0 ? 1.0 : 0.0;
+ setControlParameterLeftDown(emitValue);
m_bPressed = true;
restyleAndRepaint();
}
@@ -418,8 +418,8 @@ void WPushButton::mouseReleaseEvent(QMouseEvent * e) {
const bool rightButtonDown = QApplication::mouseButtons() & Qt::RightButton;
if (m_bPressed && !m_clickTimer.isActive() && !rightButtonDown) {
// Release button after timer, but not if right button is clicked
- double value = getControlParameterLeft() == 0.0 ? 1.0 : 0.0;
- setControlParameterLeftUp(value);
+ double emitValue = getControlParameterLeft() == 0.0 ? 1.0 : 0.0;
+ setControlParameterLeftUp(emitValue);
}
m_bPressed = false;
} else if (rightClick) {