From 2c4f71e89a25109de9fc90c6403c9eada5778ea1 Mon Sep 17 00:00:00 2001 From: x-tools-author Date: Tue, 26 Mar 2024 17:03:57 +0800 Subject: [PATCH] chore: update the file --- xTools.pro | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/xTools.pro b/xTools.pro index 23573325..eaf48e48 100644 --- a/xTools.pro +++ b/xTools.pro @@ -4,7 +4,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. -#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 +# disables all the APIs deprecated before Qt 6.0.0 +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin @@ -48,10 +49,8 @@ OBJECTS_DIR = $$OUT_PWD/obj # Configuration of Windows win32 { RC_ICONS = xTools.ico - msvc:{ - lessThan(QT_MAJOR_VERSION, 6){ - QMAKE_CXXFLAGS += -execution-charset:utf-8 - } + msvc:lessThan(QT_MAJOR_VERSION, 6) { + QMAKE_CXXFLAGS += -execution-charset:utf-8 } } @@ -71,11 +70,11 @@ contains(CONFIG, static) { DEPLOY_TARGET = $${OUT_PWD}/release/$${TARGET}.exe } - DEPLOY_TARGET=$$replace(DEPLOY_TARGET, /, \\) + DEPLOY_TARGET = $$replace(DEPLOY_TARGET, /, \\) msvc { - QMAKE_POST_LINK+=$${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand(\\n) + QMAKE_POST_LINK += $${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand(\\n) } else { - QMAKE_POST_LINK+='$$escape_expand("\\n\\t") $${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand("\\n\\t")' + QMAKE_POST_LINK += '$$escape_expand("\\n\\t") $${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand("\\n\\t")' } } }