From 9f0f194d7b4dfaae3ee657eda308339713c18e7f Mon Sep 17 00:00:00 2001 From: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com> Date: Wed, 29 Jan 2025 12:14:26 +0100 Subject: [PATCH] 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() --- src/Gui/Dialogs/DlgAbout.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Gui/Dialogs/DlgAbout.cpp b/src/Gui/Dialogs/DlgAbout.cpp index d1d5e5316d..caebd385a1 100644 --- a/src/Gui/Dialogs/DlgAbout.cpp +++ b/src/Gui/Dialogs/DlgAbout.cpp @@ -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;