From 517398734d300f02ec33acea6c8f03040af02eeb Mon Sep 17 00:00:00 2001 From: ruizhe Date: Thu, 19 Oct 2023 10:51:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=87=AA=E5=8A=A8=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E5=B9=B6=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 6 ++++++ logtools.cpp | 2 +- main.cpp | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 65e6634..9e38f03 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +nfs-logtools (1.0.0-4) unstable; urgency=medium + + * fix: auto scaling and fix error. + + -- ruizhe Thu, 19 Oct 2023 10:56:13 +0800 + nfs-logtools (1.0.0-3) unstable; urgency=medium * fix: adjust xsession-error log path. diff --git a/logtools.cpp b/logtools.cpp index 6d7d36f..7524ad7 100644 --- a/logtools.cpp +++ b/logtools.cpp @@ -282,7 +282,7 @@ void Logtools::logtoolsGetHomePath() void Logtools::logtoolsMessagesBox() { QMessageBox box(QMessageBox::Information, "提示", "该日志文件为空或不存在!"); - box.setButtonText(QMessageBox::OK, QString(" 确 定")); + box.setButtonText(QMessageBox::Ok, QString(" 确 定")); box.exec(); } diff --git a/main.cpp b/main.cpp index 32ec383..decdbc1 100644 --- a/main.cpp +++ b/main.cpp @@ -6,6 +6,11 @@ int main(int argc, char *argv[]) { qputenv("XDG_RUNTIME_DIR", "/tmp/runtime-root"); + + if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) { + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + } + QApplication a(argc, argv); //防止进程多开 -- Gitee