set the toolbar as the parent of the toolbar widgets
This commit is contained in:
parent
af3cf519f1
commit
4652623bb7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue