External tools: Fall back to active project's Qt

for the Qt related external tools, if there is no open document with a
project.

Change-Id: I1d059d70e5163921a8d98b6a93224aef1fbf1743
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Eike Ziller
2023-03-15 11:53:32 +01:00
parent b3df7c3cdb
commit d172e59d6e
4 changed files with 4 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
<order>2</order>
<executable>
<path>%{CurrentDocument:Project:QT_INSTALL_BINS}/lrelease</path>
<path>%{ActiveProject:QT_INSTALL_BINS}/lrelease</path>
<path>lrelease</path>
<arguments>%{CurrentDocument:Project:FilePath}</arguments>
<workingdirectory>%{CurrentDocument:Project:Path}</workingdirectory>

View File

@@ -11,6 +11,7 @@
<order>1</order>
<executable>
<path>%{CurrentDocument:Project:QT_INSTALL_BINS}/lupdate</path>
<path>%{ActiveProject:QT_INSTALL_BINS}/lupdate</path>
<path>lupdate</path>
<arguments>%{CurrentDocument:Project:FilePath}</arguments>
<workingdirectory>%{CurrentDocument:Project:Path}</workingdirectory>

View File

@@ -11,6 +11,7 @@
<order>1</order>
<executable>
<path>%{CurrentDocument:Project:QT_INSTALL_BINS}/qml</path>
<path>%{ActiveProject:QT_INSTALL_BINS}/qml</path>
<path>qml</path>
<arguments>%{CurrentDocument:FilePath}</arguments>
<workingdirectory>%{CurrentDocument:Path}</workingdirectory>

View File

@@ -11,6 +11,7 @@
<order>1</order>
<executable>
<path>%{CurrentDocument:Project:QT_INSTALL_BINS}/qmlscene</path>
<path>%{ActiveProject:QT_INSTALL_BINS}/qmlscene</path>
<path>qmlscene</path>
<arguments>%{CurrentDocument:FilePath}</arguments>
<workingdirectory>%{CurrentDocument:Path}</workingdirectory>