Browse Source

refactor(AVForm): replace QDesktopWidget::resized

reviewable/pr5745/r1
jenli669 6 years ago
parent
commit
16452eff0c
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E
  1. 4
      src/widget/form/settings/avform.cpp

4
src/widget/form/settings/avform.cpp

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

Loading…
Cancel
Save