DPI awareness and latest changes from gta5sync
This commit is contained in:
parent
6b4f856e4d
commit
ed559f3ce9
24 changed files with 343 additions and 213 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <QStringBuilder>
|
||||
#include "AboutDialog.h"
|
||||
#include "ui_AboutDialog.h"
|
||||
#include "AppEnv.h"
|
||||
#include "config.h"
|
||||
|
||||
AboutDialog::AboutDialog(QWidget *parent) :
|
||||
|
@ -51,6 +52,10 @@ AboutDialog::AboutDialog(QWidget *parent) :
|
|||
{
|
||||
ui->cmdClose->setIcon(QIcon::fromTheme("dialog-close"));
|
||||
}
|
||||
|
||||
// DPI calculation
|
||||
qreal screenRatio = AppEnv::screenRatio();
|
||||
resize(375 * screenRatio, 260 * screenRatio);
|
||||
}
|
||||
|
||||
AboutDialog::~AboutDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue