DPI awareness and latest changes from gta5sync

This commit is contained in:
Syping 2017-05-01 05:05:55 +02:00
parent 6b4f856e4d
commit ed559f3ce9
24 changed files with 343 additions and 213 deletions

View file

@ -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()