Merge "Merge remote-tracking branch 'origin/6.0' into 7.0" into 7.0
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 20 KiB |
@@ -24,7 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example loginui1
|
||||
\example Loginui1
|
||||
\ingroup gstutorials
|
||||
\nextpage {Log In UI - Positioning}
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
adds the following \e import statements to the UI files (.ui.qml) that it
|
||||
creates:
|
||||
|
||||
\quotefromfile Loginui1/Content/Screen01.ui.qml
|
||||
\quotefromfile Loginui1/content/Screen01.ui.qml
|
||||
\skipto import
|
||||
\printuntil Controls
|
||||
|
||||
@@ -334,7 +334,7 @@
|
||||
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:
|
||||
|
||||
\quotefromfile Loginui1/Content/EntryField.ui.qml
|
||||
\quotefromfile Loginui1/content/EntryField.ui.qml
|
||||
\skipto import
|
||||
\printuntil Controls
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example loginui3
|
||||
\example Loginui3
|
||||
\ingroup gstutorials
|
||||
|
||||
\title Log In UI - States
|
||||
|
@@ -24,7 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example loginui4
|
||||
\example Loginui4
|
||||
\ingroup gstutorials
|
||||
|
||||
\title Log In UI - Timeline
|
||||
@@ -312,7 +312,7 @@
|
||||
the following \e import statement to the UI files where it uses the
|
||||
components:
|
||||
|
||||
\quotefromfile Loginui4/Content/Screen01.ui.qml
|
||||
\quotefromfile Loginui4/content/Screen01.ui.qml
|
||||
\skipto QtQuick.Timeline
|
||||
\printuntil 1.0
|
||||
|
||||
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 96 KiB |
@@ -62,6 +62,10 @@
|
||||
\li Category
|
||||
\li Wizard Preset
|
||||
\li Purpose
|
||||
\row
|
||||
\li Recents
|
||||
\li
|
||||
\li Lists the most recent presets that you have used.
|
||||
\row
|
||||
\li {1,2} General
|
||||
\li Empty
|
||||
|
@@ -42,9 +42,9 @@ def clean_environment_script():
|
||||
'TERM_SESSION_ID'])
|
||||
return r'''
|
||||
function ignore() {
|
||||
local keys="''' + env_to_keep + '''"
|
||||
local keys=(''' + env_to_keep + ''')
|
||||
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
|
||||
key=$(echo $line | /usr/bin/cut -d '=' -f 1)
|
||||
|
@@ -1065,7 +1065,8 @@ static bool isDocker(const Kit *k)
|
||||
static bool isWindowsARM64(const Kit *k)
|
||||
{
|
||||
ToolChain *toolchain = ToolChainKitAspect::cxxToolChain(k);
|
||||
QTC_ASSERT(toolchain, return false);
|
||||
if (!toolchain)
|
||||
return false;
|
||||
const Abi targetAbi = toolchain->targetAbi();
|
||||
return targetAbi.os() == Abi::WindowsOS && targetAbi.architecture() == Abi::ArmArchitecture
|
||||
&& targetAbi.wordWidth() == 64;
|
||||
|
@@ -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.
|
||||
|
||||
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:
|
||||
* 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
|
||||
|
@@ -48,7 +48,9 @@ class Targets:
|
||||
@staticmethod
|
||||
def availableTargetClasses():
|
||||
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)
|
||||
elif platform.system() == 'Darwin':
|
||||
availableTargets.remove(Targets.DESKTOP_5_4_1_GCC)
|
||||
|
@@ -69,7 +69,10 @@ def openCmakeProject(projectPath, buildDir):
|
||||
invokeMenuItem("File", "Open File or Project...")
|
||||
selectFromFileDialog(projectPath)
|
||||
__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"))
|
||||
return True
|
||||
|
||||
@@ -524,6 +527,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
||||
result = set()
|
||||
if 'Desktop' in supports:
|
||||
if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"):
|
||||
if qt4Available:
|
||||
result.add(Targets.DESKTOP_4_8_7_DEFAULT)
|
||||
if platform.system() in ("Linux", "Darwin"):
|
||||
result.add(Targets.EMBEDDED_LINUX)
|
||||
|
@@ -39,6 +39,13 @@ try:
|
||||
except ImportError:
|
||||
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 = ''
|
||||
SettingsPath = []
|
||||
tmpSettingsDir = ''
|
||||
@@ -329,10 +336,8 @@ def copySettingsToTmpDir(destination=None, omitFiles=[]):
|
||||
|
||||
# current dir is directory holding qtcreator.py
|
||||
origSettingsDir = os.path.abspath(os.path.join(os.getcwd(), "..", "..", "settings"))
|
||||
qt4Path = os.path.expanduser("~/Qt4.8.7")
|
||||
|
||||
if platform.system() in ('Windows', 'Microsoft'):
|
||||
qt4Path = "C:\\Qt\\Qt4.8.7"
|
||||
origSettingsDir = os.path.join(origSettingsDir, "windows")
|
||||
elif platform.system() == 'Darwin':
|
||||
origSettingsDir = os.path.join(origSettingsDir, "mac")
|
||||
|
@@ -78,8 +78,10 @@ def main():
|
||||
continue
|
||||
if not startCreatorVerifyingClang(useClang):
|
||||
continue
|
||||
projectName = createNewNonQtProject(tempDir(), "project-csup03",
|
||||
[Targets.DESKTOP_4_8_7_DEFAULT])
|
||||
targetToChoose = Targets.DESKTOP_4_8_7_DEFAULT
|
||||
if not qt4Available:
|
||||
targetToChoose = Targets.DESKTOP_5_14_1_DEFAULT
|
||||
projectName = createNewNonQtProject(tempDir(), "project-csup03", [targetToChoose])
|
||||
checkCodeModelSettings(useClang)
|
||||
openDocument("%s.Sources.main\\.cpp" % projectName)
|
||||
editor = getEditorForFileSuffix("main.cpp")
|
||||
|
@@ -69,6 +69,7 @@ def main():
|
||||
startQC()
|
||||
if not startedWithoutPluginError():
|
||||
return
|
||||
if qt4Available:
|
||||
addHelpDocumentation([os.path.join(qt4Path, "doc", "qch", "qt.qch")])
|
||||
# switch to help mode
|
||||
switchViewTo(ViewConstants.HELP)
|
||||
|
@@ -41,7 +41,10 @@ def main():
|
||||
startQC()
|
||||
if not startedWithoutPluginError():
|
||||
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()
|
||||
|
||||
fancyToolButton = waitForObject(":*Qt Creator_Core::Internal::FancyToolButton")
|
||||
|
@@ -36,7 +36,10 @@ def main():
|
||||
return
|
||||
|
||||
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
|
||||
waitFor("runButton.enabled", 30000)
|
||||
# Starting before opening, because this is where Creator froze (QTCREATORBUG-10733)
|
||||
|