mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(AVForm): replace QDesktopWidget::resized
This commit is contained in:
parent
6e71ccfdad
commit
16452eff0c
|
@ -105,9 +105,11 @@ AVForm::AVForm(IAudioControl& audio, CoreAV* coreAV, CameraSource& camera,
|
||||||
eventsInit();
|
eventsInit();
|
||||||
|
|
||||||
QDesktopWidget* desktop = QApplication::desktop();
|
QDesktopWidget* desktop = QApplication::desktop();
|
||||||
connect(desktop, &QDesktopWidget::resized, this, &AVForm::rescanDevices);
|
|
||||||
connect(desktop, &QDesktopWidget::screenCountChanged, this, &AVForm::rescanDevices);
|
connect(desktop, &QDesktopWidget::screenCountChanged, this, &AVForm::rescanDevices);
|
||||||
|
|
||||||
|
for (QScreen* qScreen : QGuiApplication::screens()) {
|
||||||
|
connect(qScreen, &QScreen::geometryChanged, this, &AVForm::rescanDevices);
|
||||||
|
}
|
||||||
Translator::registerHandler(std::bind(&AVForm::retranslateUi, this), this);
|
Translator::registerHandler(std::bind(&AVForm::retranslateUi, this), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user