fullscreen picture viewer adapt when screen size changed

This commit is contained in:
Rafael 2016-11-20 10:41:21 +01:00
parent 3138a8e1ca
commit cb009c0f6e
4 changed files with 25 additions and 5 deletions

View file

@ -41,7 +41,7 @@ OptionsDialog::OptionsDialog(ProfileDatabase *profileDB, QWidget *parent) :
ui->tabWidget->setCurrentIndex(0);
ui->labPicCustomRes->setVisible(false);
QRect desktopResolution = QApplication::desktop()->screenGeometry();
QRect desktopResolution = QApplication::desktop()->screenGeometry(parent);
int desktopSizeWidth = desktopResolution.width();
int desktopSizeHeight = desktopResolution.height();
aspectRatio = Qt::KeepAspectRatio;