diff --git a/debian/changelog b/debian/changelog index 65e66343ea788829a1bba4ed2d89cd3c9b0eae0d..9e38f036895aa1694b9f447852d3f9ea07a4ff2c 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 6d7d36fa02ab50402826e1ebaafb638502ac849a..7524ad7d0409d5f61d1441ce030ba2bc5b054d11 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 32ec3832593f862c3fd00b78bd3aec5c658b5e8c..decdbc1547ae1fc2794e254238038b41475923db 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); //防止进程多开