1
0
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:
jenli669 2019-07-13 10:26:35 +02:00
parent 6e71ccfdad
commit 16452eff0c
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -105,9 +105,11 @@ AVForm::AVForm(IAudioControl& audio, CoreAV* coreAV, CameraSource& camera,
eventsInit();
QDesktopWidget* desktop = QApplication::desktop();
connect(desktop, &QDesktopWidget::resized, 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);
}