fix DPI scaling in PictureDialog
Este commit está contenido en:
padre
c39c3a3e9f
commit
aeae6c9311
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
|
@ -188,6 +188,12 @@ void PictureDialog::setupPictureDialog()
|
|||
ui->labPicture->setFixedSize(960 * screenRatio, 536 * screenRatio);
|
||||
ui->labPicture->setFocusPolicy(Qt::StrongFocus);
|
||||
|
||||
// DPI calculation
|
||||
ui->hlButtons->setSpacing(6 * screenRatio);
|
||||
ui->vlButtons->setSpacing(6 * screenRatio);
|
||||
ui->vlButtons->setContentsMargins(0, 0, 5 * screenRatio, 5 * screenRatio);
|
||||
ui->jsonLayout->setContentsMargins(4 * screenRatio, 10 * screenRatio, 4 * screenRatio, 4 * screenRatio);
|
||||
|
||||
// Pre-adapt window for DPI
|
||||
setFixedWidth(960 * screenRatio);
|
||||
setFixedHeight(536 * screenRatio);
|
||||
|
|
BIN
res/5sync.ico
BIN
res/5sync.ico
Archivo binario no mostrado.
Antes (image error) Tamaño: 38 KiB Después (image error) Tamaño: 88 KiB |
Cargando…
Añadir tabla
Añadir enlace
Referenciar en una nueva incidencia