Adding DPI info to the copied information in the about dialog (#19251)

* Adding DPI info to the copied information in the about dialog.

* Update DlgAbout.cpp

changed screen() to QApplication::primaryScreen()
This commit is contained in:
Max Wilfinger
2025-01-29 12:14:26 +01:00
committed by GitHub
parent f7f81b812c
commit 9f0f194d7b

View File

@@ -709,6 +709,13 @@ void AboutDialog::copyToClipboard()
str << "Stylesheet/Theme/QtStyle: " << QString::fromStdString(styleSheet) << "/"
<< QString::fromStdString(theme) << "/" << QString::fromStdString(style) << "\n";
// Add DPI information
str << "Logical/physical DPI: "
<< QApplication::primaryScreen()->logicalDotsPerInch()
<< "/"
<< QApplication::primaryScreen()->physicalDotsPerInch()
<< "\n";
// Add installed module information:
auto modDir = fs::path(App::Application::getUserAppDataDir()) / "Mod";
bool firstMod = true;