forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.2'
Change-Id: I8896af66cf8af7436cf3946ddb013742260d50a9
This commit is contained in:
21
dist/changes-4.2.2.md
vendored
Normal file
21
dist/changes-4.2.2.md
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Qt Creator version 4.2.2 contains bug fixes.
|
||||||
|
|
||||||
|
The most important changes are listed in this document. For a complete
|
||||||
|
list of changes, see the Git log for the Qt Creator sources that
|
||||||
|
you can check out from the public Git repository. For example:
|
||||||
|
|
||||||
|
git clone git://code.qt.io/qt-creator/qt-creator.git
|
||||||
|
git log --cherry-pick --pretty=oneline v4.2.1..v4.2.2
|
||||||
|
|
||||||
|
Qt Support
|
||||||
|
|
||||||
|
* Fixed ABI detection of static Qt builds
|
||||||
|
|
||||||
|
Qbs Projects
|
||||||
|
|
||||||
|
* Fixed duplicate include paths (QTCREATORBUG-17381)
|
||||||
|
|
||||||
|
Version Control Systems
|
||||||
|
|
||||||
|
* Gerrit
|
||||||
|
* Fixed crash when committing and pushing to Gerrit (QTCREATORBUG-17634)
|
@@ -58,20 +58,15 @@ def parse_arguments():
|
|||||||
source_include_patterns = [
|
source_include_patterns = [
|
||||||
# directories
|
# directories
|
||||||
r"^scripts/.*$", # everything under scripts/
|
r"^scripts/.*$", # everything under scripts/
|
||||||
|
r"^share/(qtcreator/(qml/(qmlpuppet/(.*/)?)?)?)?$", # for shared headers for qt quick designer plugins
|
||||||
r"^src/(.*/)?$", # all directories under src/
|
r"^src/(.*/)?$", # all directories under src/
|
||||||
r"^plugins/(.*/)?$", # all directories under plugins/ (if this is run on extra plugin repositories)
|
r"^plugins/(.*/)?$", # all directories under plugins/ (if this is run on extra plugin repositories)
|
||||||
# files
|
# files
|
||||||
r"^HACKING$",
|
r"^HACKING$",
|
||||||
r"^LICENSE.*$",
|
r"^LICENSE.*$",
|
||||||
r"^README.md$",
|
r"^README.md$",
|
||||||
r"^qtcreator.pri$",
|
r"^.*\.pri$",
|
||||||
r"^qtcreatordata.pri$",
|
|
||||||
r"^src/qtcreatorplugin.pri$",
|
|
||||||
r"^src/qtcreatorlibrary.pri$",
|
|
||||||
r"^src/qtcreatortool.pri$",
|
|
||||||
r"^src/rpath.pri$",
|
|
||||||
r"^.*\.h$",
|
r"^.*\.h$",
|
||||||
r"^.*_dependencies.pri$",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
build_include_patterns = [
|
build_include_patterns = [
|
||||||
|
@@ -1118,7 +1118,7 @@ bool GitClient::synchronousReset(const QString &workingDirectory,
|
|||||||
// Note that git exits with 1 even if the operation is successful
|
// Note that git exits with 1 even if the operation is successful
|
||||||
// Assume real failure if the output does not contain "foo.cpp modified"
|
// Assume real failure if the output does not contain "foo.cpp modified"
|
||||||
// or "Unstaged changes after reset" (git 1.7.0).
|
// or "Unstaged changes after reset" (git 1.7.0).
|
||||||
if (resp.result == SynchronousProcessResponse::Finished
|
if (resp.result != SynchronousProcessResponse::Finished
|
||||||
&& (!stdOut.contains("modified") && !stdOut.contains("Unstaged changes after reset"))) {
|
&& (!stdOut.contains("modified") && !stdOut.contains("Unstaged changes after reset"))) {
|
||||||
if (files.isEmpty()) {
|
if (files.isEmpty()) {
|
||||||
msgCannotRun(arguments, workingDirectory, resp.stdErr(), errorMessage);
|
msgCannotRun(arguments, workingDirectory, resp.stdErr(), errorMessage);
|
||||||
|
@@ -212,7 +212,7 @@ bool QmakeProjectManagerPlugin::initialize(const QStringList &arguments, QString
|
|||||||
|
|
||||||
m_buildFileAction = new Utils::ParameterAction(tr("Build File"), tr("Build File \"%1\""),
|
m_buildFileAction = new Utils::ParameterAction(tr("Build File"), tr("Build File \"%1\""),
|
||||||
Utils::ParameterAction::AlwaysEnabled, this);
|
Utils::ParameterAction::AlwaysEnabled, this);
|
||||||
command = ActionManager::registerAction(m_buildFileAction, Constants::BUILDFILE);
|
command = ActionManager::registerAction(m_buildFileAction, Constants::BUILDFILE, projectContext);
|
||||||
command->setAttribute(Command::CA_Hide);
|
command->setAttribute(Command::CA_Hide);
|
||||||
command->setAttribute(Command::CA_UpdateText);
|
command->setAttribute(Command::CA_UpdateText);
|
||||||
command->setDescription(m_buildFileAction->text());
|
command->setDescription(m_buildFileAction->text());
|
||||||
|
@@ -471,6 +471,12 @@ QSet<Id> BaseQtVersion::availableFeatures() const
|
|||||||
if (qtVersion().matches(5, 7))
|
if (qtVersion().matches(5, 7))
|
||||||
return features;
|
return features;
|
||||||
|
|
||||||
|
features.unite(versionedIds(Constants::FEATURE_QT_QUICK_PREFIX, 2, 8));
|
||||||
|
features.unite(versionedIds(Constants::FEATURE_QT_QUICK_CONTROLS_2_PREFIX, 2, 1));
|
||||||
|
|
||||||
|
if (qtVersion().matches(5, 8))
|
||||||
|
return features;
|
||||||
|
|
||||||
return features;
|
return features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -166,7 +166,7 @@
|
|||||||
:Qt Creator_SearchResult_Core::Internal::OutputPaneToggleButton {occurrence='2' type='Core::Internal::OutputPaneToggleButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
:Qt Creator_SearchResult_Core::Internal::OutputPaneToggleButton {occurrence='2' type='Core::Internal::OutputPaneToggleButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||||
:Qt Creator_SystemSettings.Details_Utils::DetailsButton {occurrence='4' text='Details' type='Utils::DetailsButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
:Qt Creator_SystemSettings.Details_Utils::DetailsButton {occurrence='4' text='Details' type='Utils::DetailsButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||||
:Qt Creator_TextEditor::TextEditorWidget {type='TextEditor::TextEditorWidget' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
:Qt Creator_TextEditor::TextEditorWidget {type='TextEditor::TextEditorWidget' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||||
:Qt Creator_Utils::BuildDirectoryLineEdit {occurrence='2' type='Utils::FancyLineEdit' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
:Qt Creator_Utils::BuildDirectoryLineEdit {name='shadowBuildDirEditLineEdit' type='Utils::FancyLineEdit' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||||
:Qt Creator_Utils::NavigationTreeView {type='Utils::NavigationTreeView' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
:Qt Creator_Utils::NavigationTreeView {type='Utils::NavigationTreeView' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||||
:Qt Creator_Utils::NavigationTreeView::QExpandingLineEdit {container=':Qt Creator_Utils::NavigationTreeView' type='QExpandingLineEdit' unnamed='1' visible='1'}
|
:Qt Creator_Utils::NavigationTreeView::QExpandingLineEdit {container=':Qt Creator_Utils::NavigationTreeView' type='QExpandingLineEdit' unnamed='1' visible='1'}
|
||||||
:Qt Gui Application.Form file:_QLabel {name='formLabel' text='Form file:' type='QLabel' visible='1' window=':Qt Gui Application_QmakeProjectManager::Internal::GuiAppWizardDialog'}
|
:Qt Gui Application.Form file:_QLabel {name='formLabel' text='Form file:' type='QLabel' visible='1' window=':Qt Gui Application_QmakeProjectManager::Internal::GuiAppWizardDialog'}
|
||||||
|
@@ -41,7 +41,7 @@ def main():
|
|||||||
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)
|
||||||
startopening = datetime.utcnow()
|
startopening = datetime.utcnow()
|
||||||
openQmakeProject(pathCreator, Targets.DESKTOP_531_DEFAULT)
|
openQmakeProject(pathCreator, Targets.DESKTOP_561_DEFAULT)
|
||||||
# Wait for parsing to complete
|
# Wait for parsing to complete
|
||||||
startreading = datetime.utcnow()
|
startreading = datetime.utcnow()
|
||||||
waitFor("runButton.enabled", 300000)
|
waitFor("runButton.enabled", 300000)
|
||||||
@@ -62,12 +62,15 @@ def main():
|
|||||||
if not test.verify(object.exists(":Qt Creator_Core::OutputWindow"),
|
if not test.verify(object.exists(":Qt Creator_Core::OutputWindow"),
|
||||||
"Did the General Messages view show up?"):
|
"Did the General Messages view show up?"):
|
||||||
openGeneralMessages()
|
openGeneralMessages()
|
||||||
|
# Verify messages appear once, from using default kit before configuring
|
||||||
generalMessages = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText)
|
generalMessages = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText)
|
||||||
test.verify("Project MESSAGE: Cannot build Qt Creator with Qt version 5.3.1." in generalMessages,
|
test.compare(generalMessages.count("Project MESSAGE: Cannot build Qt Creator with Qt version 5.3.1."), 1,
|
||||||
"Warning about outdated Qt shown?")
|
"Warning about outdated Qt shown?")
|
||||||
test.verify("Project ERROR: Use at least Qt 5.5.0." in generalMessages,
|
test.compare(generalMessages.count("Project ERROR: Use at least Qt 5.5.0."), 1,
|
||||||
"Minimum Qt version shown?")
|
"Minimum Qt version shown?")
|
||||||
|
|
||||||
|
# Verify that qmljs.g is in the project even when we don't know where (QTCREATORBUG-17609)
|
||||||
|
selectFromLocator("p qmljs.g", "qmljs.g")
|
||||||
# Now check some basic lookups in the search box
|
# Now check some basic lookups in the search box
|
||||||
selectFromLocator(": Qlist::QList", "QList::QList")
|
selectFromLocator(": Qlist::QList", "QList::QList")
|
||||||
test.compare(wordUnderCursor(waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")), "QList")
|
test.compare(wordUnderCursor(waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")), "QList")
|
||||||
|
@@ -2683,8 +2683,6 @@
|
|||||||
"qmljsgrammar.cpp" "6"
|
"qmljsgrammar.cpp" "6"
|
||||||
"qmljslexer.cpp" "6"
|
"qmljslexer.cpp" "6"
|
||||||
"qmljsparser.cpp" "6"
|
"qmljsparser.cpp" "6"
|
||||||
"Other files" "5"
|
|
||||||
"qmljs.g" "6"
|
|
||||||
"Headers" "4"
|
"Headers" "4"
|
||||||
"jsoncheck.h" "5"
|
"jsoncheck.h" "5"
|
||||||
"persistenttrie.h" "5"
|
"persistenttrie.h" "5"
|
||||||
@@ -2760,9 +2758,6 @@
|
|||||||
"qmljsutils.cpp" "5"
|
"qmljsutils.cpp" "5"
|
||||||
"qmljsvalueowner.cpp" "5"
|
"qmljsvalueowner.cpp" "5"
|
||||||
"qmljsviewercontext.cpp" "5"
|
"qmljsviewercontext.cpp" "5"
|
||||||
"Other files" "4"
|
|
||||||
"parser" "5"
|
|
||||||
"qmljs.g" "6"
|
|
||||||
"qtcreatorlibrary" "3"
|
"qtcreatorlibrary" "3"
|
||||||
"qtcreatorlibrary.pri" "4"
|
"qtcreatorlibrary.pri" "4"
|
||||||
"qmljs_dependencies" "4"
|
"qmljs_dependencies" "4"
|
||||||
@@ -13819,8 +13814,6 @@
|
|||||||
"qmljsgrammar.cpp" "8"
|
"qmljsgrammar.cpp" "8"
|
||||||
"qmljslexer.cpp" "8"
|
"qmljslexer.cpp" "8"
|
||||||
"qmljsparser.cpp" "8"
|
"qmljsparser.cpp" "8"
|
||||||
"Other files" "7"
|
|
||||||
"qmljs.g" "8"
|
|
||||||
"Headers" "6"
|
"Headers" "6"
|
||||||
"jsoncheck.h" "7"
|
"jsoncheck.h" "7"
|
||||||
"persistenttrie.h" "7"
|
"persistenttrie.h" "7"
|
||||||
@@ -13896,9 +13889,6 @@
|
|||||||
"qmljsutils.cpp" "7"
|
"qmljsutils.cpp" "7"
|
||||||
"qmljsvalueowner.cpp" "7"
|
"qmljsvalueowner.cpp" "7"
|
||||||
"qmljsviewercontext.cpp" "7"
|
"qmljsviewercontext.cpp" "7"
|
||||||
"Other files" "6"
|
|
||||||
"parser" "7"
|
|
||||||
"qmljs.g" "8"
|
|
||||||
"qttest" "5"
|
"qttest" "5"
|
||||||
"qttest.pri" "6"
|
"qttest.pri" "6"
|
||||||
"qtcreator" "6"
|
"qtcreator" "6"
|
||||||
|
|
@@ -74,7 +74,7 @@ def verifyVersionControlView(targetDir, canceled):
|
|||||||
clickButton(waitForObject(":*Qt Creator.Clear_QToolButton"))
|
clickButton(waitForObject(":*Qt Creator.Clear_QToolButton"))
|
||||||
|
|
||||||
def verifyFiles(targetDir):
|
def verifyFiles(targetDir):
|
||||||
for file in [".gitignore", "LGPL_EXCEPTION.txt", "installerfw.pro",
|
for file in [".gitignore", "LICENSE.GPL3-EXCEPT", "installerfw.pro",
|
||||||
os.path.join("tests", "test-installer", "create-test-installer.bat"),
|
os.path.join("tests", "test-installer", "create-test-installer.bat"),
|
||||||
os.path.join("src", "sdk", "main.cpp")]:
|
os.path.join("src", "sdk", "main.cpp")]:
|
||||||
test.verify(os.path.exists(os.path.join(targetDir, cloneDir, file)),
|
test.verify(os.path.exists(os.path.join(targetDir, cloneDir, file)),
|
||||||
|
Reference in New Issue
Block a user