mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-16 04:38:57 -04:00
Reworked spectrum GUI controls
This commit is contained in:
@@ -50,16 +50,18 @@ GLSpectrumGUI::GLSpectrumGUI(QWidget* parent) :
|
||||
|
||||
// Use the custom flow layout for the 3 main horizontal layouts (lines)
|
||||
ui->verticalLayout->removeItem(ui->Line5Layout);
|
||||
ui->verticalLayout->removeItem(ui->Line6Layout);
|
||||
ui->verticalLayout->removeItem(ui->Line4Layout);
|
||||
ui->verticalLayout->removeItem(ui->Line3Layout);
|
||||
ui->verticalLayout->removeItem(ui->Line2Layout);
|
||||
ui->verticalLayout->removeItem(ui->Line1Layout);
|
||||
FlowLayout *flowLayout = new FlowLayout(nullptr, 1, 1, 1);
|
||||
flowLayout->addItem(ui->Line3Layout);
|
||||
flowLayout->addItem(ui->Line4Layout);
|
||||
flowLayout->addItem(ui->Line1Layout);
|
||||
flowLayout->addItem(ui->Line2Layout);
|
||||
flowLayout->addItem(ui->Line3Layout);
|
||||
flowLayout->addItem(ui->Line4Layout);
|
||||
flowLayout->addItem(ui->Line5Layout);
|
||||
flowLayout->addItem(ui->Line6Layout);
|
||||
ui->verticalLayout->addItem(flowLayout);
|
||||
|
||||
on_linscale_toggled(false);
|
||||
|
||||
Reference in New Issue
Block a user