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->inDevCombobox, qcbxIndexChangedStr, this, &AVForm::onInDevChanged);
|
||||||
connect(bodyUI->outDevCombobox, qcbxIndexChangedStr, this, &AVForm::onOutDevChanged);
|
connect(bodyUI->outDevCombobox, qcbxIndexChangedStr, this, &AVForm::onOutDevChanged);
|
||||||
connect(bodyUI->videoDevCombobox, qcbxIndexChangedInt, this, &AVForm::onVideoDevChanged);
|
connect(bodyUI->videoDevCombobox, qcbxIndexChangedInt, this, &AVForm::onVideoDevChanged);
|
||||||
|
connect(bodyUI->videoModescomboBox, qcbxIndexChangedInt, this, &AVForm::onVideoModesIndexChanged);
|
||||||
|
|
||||||
connect(bodyUI->filterAudio, &QCheckBox::toggled, this, &AVForm::onFilterAudioToggled);
|
connect(bodyUI->filterAudio, &QCheckBox::toggled, this, &AVForm::onFilterAudioToggled);
|
||||||
connect(bodyUI->rescanButton, &QPushButton::clicked, this, [=](){getAudioInDevices(); getAudioOutDevices();});
|
connect(bodyUI->rescanButton, &QPushButton::clicked, this, [=](){getAudioInDevices(); getAudioOutDevices();});
|
||||||
bodyUI->playbackSlider->setValue(100);
|
bodyUI->playbackSlider->setValue(100);
|
||||||
|
@ -87,7 +89,7 @@ void AVForm::showEvent(QShowEvent*)
|
||||||
getVideoDevices();
|
getVideoDevices();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AVForm::on_videoModescomboBox_currentIndexChanged(int index)
|
void AVForm::onVideoModesIndexChanged(int index)
|
||||||
{
|
{
|
||||||
if (index<0 || index>=videoModes.size())
|
if (index<0 || index>=videoModes.size())
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,7 +52,6 @@ private:
|
||||||
void retranslateUi();
|
void retranslateUi();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_videoModescomboBox_currentIndexChanged(int index);
|
|
||||||
|
|
||||||
// audio
|
// audio
|
||||||
void onInDevChanged(const QString& deviceDescriptor);
|
void onInDevChanged(const QString& deviceDescriptor);
|
||||||
|
@ -63,6 +62,7 @@ private slots:
|
||||||
|
|
||||||
// camera
|
// camera
|
||||||
void onVideoDevChanged(int index);
|
void onVideoDevChanged(int index);
|
||||||
|
void onVideoModesIndexChanged(int index);
|
||||||
//void onResProbingFinished(QList<QSize> res);
|
//void onResProbingFinished(QList<QSize> res);
|
||||||
|
|
||||||
virtual void hideEvent(QHideEvent*) final override;
|
virtual void hideEvent(QHideEvent*) final override;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user