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
|
@ -28,6 +28,7 @@
|
|||
#include "ProfileLoader.h"
|
||||
#include "ExportThread.h"
|
||||
#include "ImportDialog.h"
|
||||
#include "AppEnv.h"
|
||||
#include "config.h"
|
||||
#include <QProgressDialog>
|
||||
#include <QProgressBar>
|
||||
|
@ -73,6 +74,11 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
|
|||
{
|
||||
ui->cmdCloseProfile->setIcon(QIcon::fromTheme("dialog-close"));
|
||||
}
|
||||
|
||||
// DPI calculation
|
||||
qreal screenRatio = AppEnv::screenRatio();
|
||||
ui->hlButtons->setSpacing(6 * screenRatio);
|
||||
ui->hlButtons->setContentsMargins(9 * screenRatio, 9 * screenRatio, 9 * screenRatio, 9 * screenRatio);
|
||||
}
|
||||
|
||||
ProfileInterface::~ProfileInterface()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue