Merge remote-tracking branch 'origin/6.0' into 7.0

Change-Id: I61bc71d3a4e786b5392aed408f0efe4d28fe7e67
This commit is contained in:
Eike Ziller
2022-02-11 10:49:15 +01:00
35 changed files with 46 additions and 20 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -24,7 +24,7 @@
****************************************************************************/ ****************************************************************************/
/*! /*!
\example loginui1 \example Loginui1
\ingroup gstutorials \ingroup gstutorials
\nextpage {Log In UI - Positioning} \nextpage {Log In UI - Positioning}
@@ -231,7 +231,7 @@
adds the following \e import statements to the UI files (.ui.qml) that it adds the following \e import statements to the UI files (.ui.qml) that it
creates: creates:
\quotefromfile Loginui1/Content/Screen01.ui.qml \quotefromfile Loginui1/content/Screen01.ui.qml
\skipto import \skipto import
\printuntil Controls \printuntil Controls
@@ -334,7 +334,7 @@
To be able to use the functionality of the Button control, the wizard template To be able to use the functionality of the Button control, the wizard template
adds the following \e import statements to the \e EntryField.ui.qml file: adds the following \e import statements to the \e EntryField.ui.qml file:
\quotefromfile Loginui1/Content/EntryField.ui.qml \quotefromfile Loginui1/content/EntryField.ui.qml
\skipto import \skipto import
\printuntil Controls \printuntil Controls

View File

@@ -24,7 +24,7 @@
****************************************************************************/ ****************************************************************************/
/*! /*!
\example loginui3 \example Loginui3
\ingroup gstutorials \ingroup gstutorials
\title Log In UI - States \title Log In UI - States

View File

@@ -24,7 +24,7 @@
****************************************************************************/ ****************************************************************************/
/*! /*!
\example loginui4 \example Loginui4
\ingroup gstutorials \ingroup gstutorials
\title Log In UI - Timeline \title Log In UI - Timeline
@@ -312,7 +312,7 @@
the following \e import statement to the UI files where it uses the the following \e import statement to the UI files where it uses the
components: components:
\quotefromfile Loginui4/Content/Screen01.ui.qml \quotefromfile Loginui4/content/Screen01.ui.qml
\skipto QtQuick.Timeline \skipto QtQuick.Timeline
\printuntil 1.0 \printuntil 1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View File

@@ -62,6 +62,10 @@
\li Category \li Category
\li Wizard Preset \li Wizard Preset
\li Purpose \li Purpose
\row
\li Recents
\li
\li Lists the most recent presets that you have used.
\row \row
\li {1,2} General \li {1,2} General
\li Empty \li Empty

View File

@@ -42,9 +42,9 @@ def clean_environment_script():
'TERM_SESSION_ID']) 'TERM_SESSION_ID'])
return r''' return r'''
function ignore() { function ignore() {
local keys="''' + env_to_keep + '''" local keys=(''' + env_to_keep + ''')
local v=$1 local v=$1
for e in $keys; do [[ "$e" == "$v" ]] && return 0; done for e in "${keys[@]}"; do [[ "$e" == "$v" ]] && return 0; done
} }
while read -r line; do while read -r line; do
key=$(echo $line | /usr/bin/cut -d '=' -f 1) key=$(echo $line | /usr/bin/cut -d '=' -f 1)

View File

@@ -1065,10 +1065,11 @@ static bool isDocker(const Kit *k)
static bool isWindowsARM64(const Kit *k) static bool isWindowsARM64(const Kit *k)
{ {
ToolChain *toolchain = ToolChainKitAspect::cxxToolChain(k); ToolChain *toolchain = ToolChainKitAspect::cxxToolChain(k);
QTC_ASSERT(toolchain, return false); if (!toolchain)
return false;
const Abi targetAbi = toolchain->targetAbi(); const Abi targetAbi = toolchain->targetAbi();
return targetAbi.os() == Abi::WindowsOS && targetAbi.architecture() == Abi::ArmArchitecture return targetAbi.os() == Abi::WindowsOS && targetAbi.architecture() == Abi::ArmArchitecture
&& targetAbi.wordWidth() == 64; && targetAbi.wordWidth() == 64;
} }
static CommandLine defaultInitialCMakeCommand(const Kit *k, const QString buildType) static CommandLine defaultInitialCMakeCommand(const Kit *k, const QString buildType)

View File

@@ -5,6 +5,7 @@ Squish tests inside this folder have several prerequisites to get them running.
First - and most important - you have to own a valid Squish license. At least Squish 6.0 is required. First - and most important - you have to own a valid Squish license. At least Squish 6.0 is required.
Second - some of the test suites/test cases expect a build of Qt 4.8.7 to be available: Second - some of the test suites/test cases expect a build of Qt 4.8.7 to be available:
[ this is optional and if Qt4 is not available some Qt5 will be tried to use instead ]
1. Download the source code from: 1. Download the source code from:
* Windows: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.zip * Windows: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.zip
* Other: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz * Other: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz

View File

@@ -48,7 +48,9 @@ class Targets:
@staticmethod @staticmethod
def availableTargetClasses(): def availableTargetClasses():
availableTargets = set(Targets.ALL_TARGETS) availableTargets = set(Targets.ALL_TARGETS)
if platform.system() in ('Windows', 'Microsoft'): if not qt4Available:
availableTargets.remove(Targets.DESKTOP_4_8_7_DEFAULT)
if not qt4Available or platform.system() in ('Windows', 'Microsoft'):
availableTargets.remove(Targets.EMBEDDED_LINUX) availableTargets.remove(Targets.EMBEDDED_LINUX)
elif platform.system() == 'Darwin': elif platform.system() == 'Darwin':
availableTargets.remove(Targets.DESKTOP_5_4_1_GCC) availableTargets.remove(Targets.DESKTOP_5_4_1_GCC)

View File

@@ -69,7 +69,10 @@ def openCmakeProject(projectPath, buildDir):
invokeMenuItem("File", "Open File or Project...") invokeMenuItem("File", "Open File or Project...")
selectFromFileDialog(projectPath) selectFromFileDialog(projectPath)
__chooseTargets__([]) # uncheck all __chooseTargets__([]) # uncheck all
__chooseTargets__([Targets.DESKTOP_4_8_7_DEFAULT], additionalFunc=additionalFunction) targetToChoose = Targets.DESKTOP_4_8_7_DEFAULT # FIXME make the intended target a parameter
if not qt4Available:
targetToChoose = Targets.DESKTOP_5_14_1_DEFAULT
__chooseTargets__([targetToChoose], additionalFunc=additionalFunction)
clickButton(waitForObject(":Qt Creator.Configure Project_QPushButton")) clickButton(waitForObject(":Qt Creator.Configure Project_QPushButton"))
return True return True
@@ -524,7 +527,8 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
result = set() result = set()
if 'Desktop' in supports: if 'Desktop' in supports:
if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"): if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"):
result.add(Targets.DESKTOP_4_8_7_DEFAULT) if qt4Available:
result.add(Targets.DESKTOP_4_8_7_DEFAULT)
if platform.system() in ("Linux", "Darwin"): if platform.system() in ("Linux", "Darwin"):
result.add(Targets.EMBEDDED_LINUX) result.add(Targets.EMBEDDED_LINUX)
result = result.union(set([Targets.DESKTOP_5_10_1_DEFAULT, Targets.DESKTOP_5_14_1_DEFAULT])) result = result.union(set([Targets.DESKTOP_5_10_1_DEFAULT, Targets.DESKTOP_5_14_1_DEFAULT]))

View File

@@ -39,6 +39,13 @@ try:
except ImportError: except ImportError:
import builtins as __builtin__ # Python 3 import builtins as __builtin__ # Python 3
# ensure global variables are defined before including shared scripts
qt4Path = os.path.expanduser("~/Qt4.8.7")
if platform.system() in ('Windows', 'Microsoft'):
qt4Path = "C:\\Qt\\Qt4.8.7"
qt4Available = os.path.exists(qt4Path)
srcPath = '' srcPath = ''
SettingsPath = [] SettingsPath = []
tmpSettingsDir = '' tmpSettingsDir = ''
@@ -329,10 +336,8 @@ def copySettingsToTmpDir(destination=None, omitFiles=[]):
# current dir is directory holding qtcreator.py # current dir is directory holding qtcreator.py
origSettingsDir = os.path.abspath(os.path.join(os.getcwd(), "..", "..", "settings")) origSettingsDir = os.path.abspath(os.path.join(os.getcwd(), "..", "..", "settings"))
qt4Path = os.path.expanduser("~/Qt4.8.7")
if platform.system() in ('Windows', 'Microsoft'): if platform.system() in ('Windows', 'Microsoft'):
qt4Path = "C:\\Qt\\Qt4.8.7"
origSettingsDir = os.path.join(origSettingsDir, "windows") origSettingsDir = os.path.join(origSettingsDir, "windows")
elif platform.system() == 'Darwin': elif platform.system() == 'Darwin':
origSettingsDir = os.path.join(origSettingsDir, "mac") origSettingsDir = os.path.join(origSettingsDir, "mac")

View File

@@ -78,8 +78,10 @@ def main():
continue continue
if not startCreatorVerifyingClang(useClang): if not startCreatorVerifyingClang(useClang):
continue continue
projectName = createNewNonQtProject(tempDir(), "project-csup03", targetToChoose = Targets.DESKTOP_4_8_7_DEFAULT
[Targets.DESKTOP_4_8_7_DEFAULT]) if not qt4Available:
targetToChoose = Targets.DESKTOP_5_14_1_DEFAULT
projectName = createNewNonQtProject(tempDir(), "project-csup03", [targetToChoose])
checkCodeModelSettings(useClang) checkCodeModelSettings(useClang)
openDocument("%s.Sources.main\\.cpp" % projectName) openDocument("%s.Sources.main\\.cpp" % projectName)
editor = getEditorForFileSuffix("main.cpp") editor = getEditorForFileSuffix("main.cpp")

View File

@@ -69,7 +69,8 @@ def main():
startQC() startQC()
if not startedWithoutPluginError(): if not startedWithoutPluginError():
return return
addHelpDocumentation([os.path.join(qt4Path, "doc", "qch", "qt.qch")]) if qt4Available:
addHelpDocumentation([os.path.join(qt4Path, "doc", "qch", "qt.qch")])
# switch to help mode # switch to help mode
switchViewTo(ViewConstants.HELP) switchViewTo(ViewConstants.HELP)
# verify that search widget is accessible # verify that search widget is accessible

View File

@@ -41,7 +41,10 @@ def main():
startQC() startQC()
if not startedWithoutPluginError(): if not startedWithoutPluginError():
return return
openQmakeProject(SpeedCrunchPath, [Targets.DESKTOP_4_8_7_DEFAULT]) targetToChoose = Targets.DESKTOP_4_8_7_DEFAULT
if not qt4Available:
targetToChoose = Targets.DESKTOP_5_14_1_DEFAULT
openQmakeProject(SpeedCrunchPath, [targetToChoose])
waitForProjectParsing() waitForProjectParsing()
fancyToolButton = waitForObject(":*Qt Creator_Core::Internal::FancyToolButton") fancyToolButton = waitForObject(":*Qt Creator_Core::Internal::FancyToolButton")

View File

@@ -36,7 +36,10 @@ def main():
return return
runButton = findObject(':*Qt Creator.Run_Core::Internal::FancyToolButton') runButton = findObject(':*Qt Creator.Run_Core::Internal::FancyToolButton')
openQmakeProject(pathSpeedcrunch, [Targets.DESKTOP_4_8_7_DEFAULT]) targetToChoose = Targets.DESKTOP_4_8_7_DEFAULT
if not qt4Available:
targetToChoose = Targets.DESKTOP_5_14_1_DEFAULT
openQmakeProject(pathSpeedcrunch, [targetToChoose])
# Wait for parsing to complete # Wait for parsing to complete
waitFor("runButton.enabled", 30000) waitFor("runButton.enabled", 30000)
# Starting before opening, because this is where Creator froze (QTCREATORBUG-10733) # Starting before opening, because this is where Creator froze (QTCREATORBUG-10733)