Changes to accommodate for high DPI

Not sure how this will work on Linux or macOS.
This commit is contained in:
Pengfei
2021-06-27 18:46:08 +08:00
parent 412aeaa0d4
commit 3db1c43fd6
8 changed files with 25 additions and 21 deletions
+4
View File
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <QDesktopWidget>
#include <QFileDialog>
#include <QFutureWatcher>
#include <QMessageBox>
@@ -21,6 +22,9 @@ UtilitiesDialog::UtilitiesDialog(QWidget* parent)
ui->setupUi(this);
const double scale = qApp->desktop()->logicalDpiX() / 96.0;
resize(static_cast<int>(width() * scale), static_cast<int>(height() * scale));
connect(ui->useSdDecryption, &QCheckBox::clicked, [this] {
const bool checked = ui->useSdDecryption->isChecked();