fullscreen picture viewer adapt when screen size changed
This commit is contained in:
parent
3138a8e1ca
commit
cb009c0f6e
4 changed files with 25 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue