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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user