Qt/AudioPane: Improve layout

This commit is contained in:
spycrab 2018-05-12 23:29:54 +02:00
parent 54d81ed13a
commit 40e6abad09
1 changed files with 10 additions and 4 deletions

View File

@ -112,11 +112,17 @@ void AudioPane::CreateWidgets()
m_main_layout = new QGridLayout;
m_main_layout->setColumnStretch(0, 1);
m_main_layout->setRowStretch(0, 0);
m_main_layout->setRowStretch(0, 0);
m_main_layout->setRowStretch(0, 0);
dsp_box->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
m_main_layout->addWidget(dsp_box, 0, 0);
m_main_layout->addWidget(volume_box, 0, 1);
m_main_layout->addWidget(backend_box, 1, 0, 1, -1);
m_main_layout->addWidget(stretching_box, 2, 0, 1, -1);
m_main_layout->addWidget(volume_box, 0, 1, -1, 1);
m_main_layout->addWidget(backend_box, 1, 0);
m_main_layout->addWidget(stretching_box, 2, 0);
setLayout(m_main_layout);
}