From 0eaa9f3e7d6b0709d54c99cb15383f4335cd3d3e Mon Sep 17 00:00:00 2001 From: gitlost Date: Thu, 7 Mar 2024 17:03:56 +0000 Subject: [PATCH] GUI: about box: display QSettings config location --- frontend_qt/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend_qt/mainwindow.cpp b/frontend_qt/mainwindow.cpp index 9365b27c..b8d5edcd 100644 --- a/frontend_qt/mainwindow.cpp +++ b/frontend_qt/mainwindow.cpp @@ -785,9 +785,10 @@ void MainWindow::factory_reset() void MainWindow::about() { QString zint_version = get_zint_version(); + QSettings settings; QMessageBox::about(this, tr("About Zint"), - /*: %1 is Zint version, %2 is Qt version */ + /*: %1 is Zint version, %2 is Qt version, %3 is QSettings file/registry path */ tr( #ifdef Q_OS_MACOS "" @@ -799,14 +800,14 @@ void MainWindow::about() "

Copyright © 2006-2024 Robin Stuart and others.
" "Qt backend by BogDan Vatra.
" "Released under GNU GPL 3.0 or later.

" - "

Qt version %2

" + "

Qt version %2 (QSettings:
%3)

" "

\"Mailmark\" is a Registered Trademark of Royal Mail.
" "\"QR Code\" is a Registered Trademark of Denso Corp.
" "\"Telepen\" is a Registered Trademark of SB Electronics.

" "

With thanks to Harald Oehlmann, Norbert Szabó, Robert Elliott, Milton Neal, " "Git Lost, Alonso Schaich, Andre Maute and many others at " "SourceForge.

" - ).arg(zint_version, QT_VERSION_STR)); + ).arg(zint_version, QT_VERSION_STR, settings.fileName())); } void MainWindow::help()