Populate and show a combo box of available ALSA cards and devices

Shows a combo box with the available ALSA cards and devices instead of a
line edit. The problem currently is that the widgets are nested classes
of AudioDevice and therefore the macro Q_OBJECT does not work which
means that its not possible to define slots that react to retrieved
signals.
This commit is contained in:
Michael Gregorius
2015-06-26 00:06:34 +02:00
parent ce7c9a5b8c
commit ad70c99d96
2 changed files with 257 additions and 3 deletions

View File

@@ -37,6 +37,7 @@
#include "AudioDevice.h"
class QComboBox;
class LcdSpinBox;
class QLineEdit;
@@ -64,7 +65,11 @@ public:
virtual void saveSettings();
public slots:
void onCurrentIndexChanged(int index);
private:
QComboBox * m_deviceComboBox;
QLineEdit * m_device;
LcdSpinBox * m_channels;