diff --git a/0003-auto-scaling-and-fix-error.patch b/0003-auto-scaling-and-fix-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..fe7fdbfc97d2a13a538cc6de5236cf404d337d5d --- /dev/null +++ b/0003-auto-scaling-and-fix-error.patch @@ -0,0 +1,29 @@ +diff --git a/nfs-logtools-1.0.0/logtools.cpp b/nfs-logtools-1.0.0/logtools.cpp +index 6d7d36f..7524ad7 100644 +--- a/nfs-logtools-1.0.0/logtools.cpp ++++ b/nfs-logtools-1.0.0/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/nfs-logtools-1.0.0/main.cpp b/nfs-logtools-1.0.0/main.cpp +index 32ec383..decdbc1 100644 +--- a/nfs-logtools-1.0.0/main.cpp ++++ b/nfs-logtools-1.0.0/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); + + //防止进程多开