1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

rescan audio devices button

This commit is contained in:
apprb 2014-11-25 01:17:34 +09:00
parent dcf318991f
commit ba4d877b89
No known key found for this signature in database
GPG Key ID: B001911B5B22FB9B
2 changed files with 18 additions and 10 deletions

View File

@ -39,6 +39,7 @@ AVForm::AVForm() :
auto qcomboboxIndexChanged = (void(QComboBox::*)(const QString&)) &QComboBox::currentIndexChanged; auto qcomboboxIndexChanged = (void(QComboBox::*)(const QString&)) &QComboBox::currentIndexChanged;
connect(bodyUI->inDevCombobox, qcomboboxIndexChanged, this, &AVForm::onInDevChanged); connect(bodyUI->inDevCombobox, qcomboboxIndexChanged, this, &AVForm::onInDevChanged);
connect(bodyUI->outDevCombobox, qcomboboxIndexChanged, this, &AVForm::onOutDevChanged); connect(bodyUI->outDevCombobox, qcomboboxIndexChanged, this, &AVForm::onOutDevChanged);
connect(bodyUI->rescanButton, &QPushButton::clicked, this, [=](){getAudioInDevices(); getAudioOutDevices();});
} }
AVForm::~AVForm() AVForm::~AVForm()

View File

@ -30,8 +30,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>824</width> <width>810</width>
<height>489</height> <height>496</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_5">
@ -41,54 +41,61 @@
<string>Audio Settings</string> <string>Audio Settings</string>
</property> </property>
<layout class="QFormLayout" name="formLayout_2"> <layout class="QFormLayout" name="formLayout_2">
<item row="6" column="0"> <item row="7" column="0">
<widget class="QLabel" name="microphoneLabel"> <widget class="QLabel" name="microphoneLabel">
<property name="text"> <property name="text">
<string>Microphone</string> <string>Microphone</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="2" column="0">
<widget class="QLabel" name="playbackLabel"> <widget class="QLabel" name="playbackLabel">
<property name="text"> <property name="text">
<string>Playback</string> <string>Playback</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="2" column="1">
<widget class="QSlider" name="playbackSlider"> <widget class="QSlider" name="playbackSlider">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="7" column="1">
<widget class="QSlider" name="microphoneSlider"> <widget class="QSlider" name="microphoneSlider">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="1" column="0">
<widget class="QLabel" name="outDevLabel"> <widget class="QLabel" name="outDevLabel">
<property name="text"> <property name="text">
<string>Playback device</string> <string>Playback device</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="6" column="0">
<widget class="QLabel" name="inDevLabel"> <widget class="QLabel" name="inDevLabel">
<property name="text"> <property name="text">
<string>Capture device</string> <string>Capture device</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="6" column="1">
<widget class="QComboBox" name="inDevCombobox"/> <widget class="QComboBox" name="inDevCombobox"/>
</item> </item>
<item row="0" column="1"> <item row="1" column="1">
<widget class="QComboBox" name="outDevCombobox"/> <widget class="QComboBox" name="outDevCombobox"/>
</item> </item>
<item row="0" column="1">
<widget class="QPushButton" name="rescanButton">
<property name="text">
<string>Rescan audio devices</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>