gui: Fix HighDpi deprecation warnings on Qt6

This commit is contained in:
Mavroudis Chatzilazaridis
2024-04-28 23:55:19 +03:00
parent 9fc5b7911b
commit f7d7b85771
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -279,7 +279,7 @@ int main(int argc, char* argv[]){
}
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// Explicitly request high dpi scaling if desired
// Needs to be called before QApplication is constructed
if(tmpSettings->value("Program/HiDPI", false).toBool())
@@ -325,7 +325,7 @@ int main(int argc, char* argv[]){
// Seed the RNG for UsbIds
Q_SRAND(QDateTime::currentMSecsSinceEpoch());
#if QT_VERSION >= QT_VERSION_CHECK(5, 3, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 3, 0) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// Enable HiDPI support
qApp->setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
+1 -1
View File
@@ -106,7 +106,7 @@ SettingsWidget::SettingsWidget(QWidget *parent) :
ui->autoUpdBox->setChecked(!settings.value("DisableAutoUpdCheck", false).toBool());
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
ui->hiDPIBox->setChecked(settings.value("HiDPI", false).toBool());
#else
ui->hiDPIBox->hide();