mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
update video mode on manual change , closes #2046
This commit is contained in:
parent
cffac87cbd
commit
73993e8b5d
|
@ -58,6 +58,8 @@ AVForm::AVForm() :
|
|||
connect(bodyUI->inDevCombobox, qcbxIndexChangedStr, this, &AVForm::onInDevChanged);
|
||||
connect(bodyUI->outDevCombobox, qcbxIndexChangedStr, this, &AVForm::onOutDevChanged);
|
||||
connect(bodyUI->videoDevCombobox, qcbxIndexChangedInt, this, &AVForm::onVideoDevChanged);
|
||||
connect(bodyUI->videoModescomboBox, qcbxIndexChangedInt, this, &AVForm::onVideoModesIndexChanged);
|
||||
|
||||
connect(bodyUI->filterAudio, &QCheckBox::toggled, this, &AVForm::onFilterAudioToggled);
|
||||
connect(bodyUI->rescanButton, &QPushButton::clicked, this, [=](){getAudioInDevices(); getAudioOutDevices();});
|
||||
bodyUI->playbackSlider->setValue(100);
|
||||
|
@ -87,7 +89,7 @@ void AVForm::showEvent(QShowEvent*)
|
|||
getVideoDevices();
|
||||
}
|
||||
|
||||
void AVForm::on_videoModescomboBox_currentIndexChanged(int index)
|
||||
void AVForm::onVideoModesIndexChanged(int index)
|
||||
{
|
||||
if (index<0 || index>=videoModes.size())
|
||||
{
|
||||
|
|
|
@ -52,7 +52,6 @@ private:
|
|||
void retranslateUi();
|
||||
|
||||
private slots:
|
||||
void on_videoModescomboBox_currentIndexChanged(int index);
|
||||
|
||||
// audio
|
||||
void onInDevChanged(const QString& deviceDescriptor);
|
||||
|
@ -63,6 +62,7 @@ private slots:
|
|||
|
||||
// camera
|
||||
void onVideoDevChanged(int index);
|
||||
void onVideoModesIndexChanged(int index);
|
||||
//void onResProbingFinished(QList<QSize> res);
|
||||
|
||||
virtual void hideEvent(QHideEvent*) final override;
|
||||
|
|
Loading…
Reference in New Issue
Block a user