26 #include <QMouseEvent>
28 #include "../core/system/log.h"
29 #include "../core/settings.h"
45 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
46 setWhatsThis(tr(
"This is the tuning indicator. Touch this field to toggle between spectral and stroboscopic mode. In the spectral mode you should bring the peak to the center of the window for optimal tuning. When tuning several strings of unisons at once, several peaks might appear and all of them should be tuned to match the center. In the stroboscopic mode several stripes of drifiting rainbows are shown. The stripes represent the partials. Optimal tuning of single strings is obtained when the rainbows come to a halt."));
65 if (event->button() != Qt::NoButton)
TuningIndicatorView(QWidget *parent)
Constructor to link AutoScaledToKeyboardGraphicsView with the TuningIndicatorDrawer.
void toggleSpectralAndStroboscopeMode()
Toggle between spectral and stroboscopic operation mode.
Drawer for the tuning indicator.
void mouseDoubleClickEvent(QMouseEvent *event) overridefinal
Function called when the tuning indicator is double-clicked.
void mousePressEvent(QMouseEvent *event) overridefinal
Function called when the tuning indicator is clicked or touched.
Stroboscopic view adapter for Qt.