1
0
Fork 0

set the toolbar as the parent of the toolbar widgets

This commit is contained in:
Kevin Matz 2022-12-04 10:33:56 -05:00
parent af3cf519f1
commit 4652623bb7
1 changed files with 4 additions and 4 deletions

View File

@ -25,10 +25,10 @@ UniverseWindow::UniverseWindow(QWidget *parent, QSacnUniverse *universe)
this, [this](){update_status_();});
// add data format combobox to toolbar
auto formatLabel = new QLabel(this);
auto formatLabel = new QLabel(ui->toolBar);
formatLabel->setText(tr("Data Format") + ": ");
ui->toolBar->addWidget(formatLabel);
auto dataModes = new QComboBox(this);
auto dataModes = new QComboBox(ui->toolBar);
const QMetaEnum types = QMetaEnum::fromType<UniverseModel::data_modes>();
for (int i=0; i < types.keyCount(); ++i)
dataModes->addItem(types.key(i));
@ -39,10 +39,10 @@ UniverseWindow::UniverseWindow(QWidget *parent, QSacnUniverse *universe)
ui->toolBar->addSeparator();
// add priority picker to the toolbar
auto priorityLabel = new QLabel(this);
auto priorityLabel = new QLabel(ui->toolBar);
priorityLabel->setText(tr("Priority") + ": ");
ui->toolBar->addWidget(priorityLabel);
prioritySpinBox = new QSpinBox(this);
prioritySpinBox = new QSpinBox(ui->toolBar);
prioritySpinBox->setMinimum(0);
prioritySpinBox->setValue(100);
prioritySpinBox->setMaximum(200);