21 #include <QHBoxLayout>
22 #include <QVBoxLayout>
32 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
35 mainLayout->setSpacing(0);
38 mainLayout->addWidget(qualityBar);
41 mainLayout->addWidget(statusView);
44 QVBoxLayout *labelsLayout =
new QVBoxLayout;
45 mainLayout->addLayout(labelsLayout);
46 labelsLayout->setMargin(0);
48 labelsLayout->addStretch();
53 keyLabelFont.setPointSize(26);
58 labelsLayout->addSpacing(2);
60 QHBoxLayout *frequencyLayout =
new QHBoxLayout;
61 labelsLayout->addLayout(frequencyLayout);
68 QLabel *hzLabel =
new QLabel(tr(
"Hz"));
69 frequencyLayout->addWidget(hzLabel);
70 hzLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
71 hzLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
74 labelsLayout->addStretch();
78 mKeyLabel->setWhatsThis(tr(
"This label displays the current selected key."));
79 mFrequencyLabel->setWhatsThis(tr(
"This label shows the ground frequency of the selected key."));
The QGraphicsView that will display the current recording status.
QWidget * mMainWidgetContainer
Mode for recording the piano keys.
SignalAnalyzerGroupBox(QWidget *parent)
int toFlag(OperationMode mode)
void setTitle(QString title)
Mode for manually tuning the piano.