Layout adjustments for AudioSoundIo

Use a QFormLayout in AudioSoundIo::setupWidget::setupWidget.

Note: Changes have been done "blindly" as I am not able to compile this
code.
This commit is contained in:
Michael Gregorius
2023-07-25 18:28:04 +02:00
parent a429c2f94f
commit 0759da2776
2 changed files with 5 additions and 12 deletions

View File

@@ -26,7 +26,7 @@
#ifdef LMMS_HAVE_SOUNDIO
#include <QLabel>
#include <QFormLayout>
#include <QLineEdit>
#include "Engine.h"
@@ -451,19 +451,13 @@ AudioSoundIo::setupWidget::setupWidget( QWidget * _parent ) :
{
m_setupUtil.m_setupWidget = this;
m_backend = new gui::ComboBox( this, "BACKEND" );
m_backend->setGeometry( 64, 15, 260, 20 );
QFormLayout * form = new QFormLayout(this);
QLabel * backend_lbl = new QLabel( tr( "Backend" ), this );
backend_lbl->setFont( pointSize<7>( backend_lbl->font() ) );
backend_lbl->move( 8, 18 );
m_backend = new gui::ComboBox( this, "BACKEND" );
form->addRow(tr("Backend"), m_backend);
m_device = new gui::ComboBox( this, "DEVICE" );
m_device->setGeometry( 64, 35, 260, 20 );
QLabel * dev_lbl = new QLabel( tr( "Device" ), this );
dev_lbl->setFont( pointSize<7>( dev_lbl->font() ) );
dev_lbl->move( 8, 38 );
form->addRow(tr("Device"), m_device);
// Setup models
m_soundio = soundio_create();

View File

@@ -490,7 +490,6 @@ SetupDialog::SetupDialog(ConfigTabs tab_to_open) :
new AudioPortAudio::setupWidget(as_w);
#endif
// TODO !!!
#ifdef LMMS_HAVE_SOUNDIO
m_audioIfaceSetupWidgets[AudioSoundIo::name()] =
new AudioSoundIo::setupWidget(as_w);