Add display type context menu to RationalSlider

This commit is contained in:
Thomas Wilshaw
2021-04-09 10:52:07 +01:00
parent 2cea45268f
commit 4d8233e7ac
3 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -54,11 +54,11 @@ void SliderLabel::mousePressEvent(QMouseEvent *e)
if (e->button() == Qt::LeftButton) {
if (e->modifiers() & Qt::AltModifier) {
emit RequestReset();
} else if (e->modifiers() & Qt::ControlModifier) {
emit ChangeSliderType();
} else {
emit LabelPressed();
}
} else if (e->button() == Qt::RightButton) {
emit ChangeSliderType();
}
}