summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2020-10-27 20:33:16 +0100
committerDaniel Schürmann <daschuer@mixxx.org>2020-10-27 20:33:16 +0100
commit8432b36bc22e06a2dc892ea850a32ff262d1c86d (patch)
treee5a3ead3f530e4e7d37b2de350d9c3433be82fff
parentbe53d9f90e24beafabc39827b2b07f5411b27ffb (diff)
Fix typo
-rw-r--r--src/mixxxapplication.cpp10
-rw-r--r--src/mixxxapplication.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mixxxapplication.cpp b/src/mixxxapplication.cpp
index 24dd27e65c..1ee2ee7602 100644
--- a/src/mixxxapplication.cpp
+++ b/src/mixxxapplication.cpp
@@ -57,7 +57,7 @@ class QMouseEventEditable : public QMouseEvent {
MixxxApplication::MixxxApplication(int& argc, char** argv)
: QApplication(argc, argv),
- m_rightPessedButtons(0),
+ m_rightPressedButtons(0),
m_pTouchShift(nullptr) {
registerMetaTypes();
}
@@ -231,11 +231,11 @@ bool MixxxApplication::notify(QObject* target, QEvent* event) {
touchIsRightButton()) {
// Assert the assumption that QT synthesizes only one click at a time
// = two events (see above)
- VERIFY_OR_DEBUG_ASSERT(m_rightPessedButtons < 2) {
+ VERIFY_OR_DEBUG_ASSERT(m_rightPressedButtons < 2) {
break;
}
mouseEvent->setButton(Qt::RightButton);
- m_rightPessedButtons++;
+ m_rightPressedButtons++;
}
break;
}
@@ -243,9 +243,9 @@ bool MixxxApplication::notify(QObject* target, QEvent* event) {
QMouseEventEditable* mouseEvent = static_cast<QMouseEventEditable*>(event);
if (mouseEvent->source() == Qt::MouseEventSynthesizedByQt &&
mouseEvent->button() == Qt::LeftButton &&
- m_rightPessedButtons > 0) {
+ m_rightPressedButtons > 0) {
mouseEvent->setButton(Qt::RightButton);
- m_rightPessedButtons--;
+ m_rightPressedButtons--;
}
break;
}
diff --git a/src/mixxxapplication.h b/src/mixxxapplication.h
index 6120020457..f0dfc94ce2 100644
--- a/src/mixxxapplication.h
+++ b/src/mixxxapplication.h
@@ -23,7 +23,7 @@ class MixxxApplication : public QApplication {
bool touchIsRightButton();
void registerMetaTypes();
- int m_rightPessedButtons;
+ int m_rightPressedButtons;
ControlProxy* m_pTouchShift;
};