aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/qtcreator/src/analyze/cpu-usage-analyzer.qdoc2
-rw-r--r--doc/qtcreator/src/overview/creator-only/creator-mobile-targets.qdoc2
-rw-r--r--doc/qtcreator/src/overview/creator-only/creator-target-platforms.qdocinc41
-rw-r--r--doc/qtcreator/src/projects/creator-only/creator-projects-targets.qdoc33
-rw-r--r--qbs/modules/libclang/functions.js3
-rw-r--r--share/qtcreator/debugger/dumper.py2
-rw-r--r--src/plugins/clangtools/clangtoolruncontrol.cpp2
-rw-r--r--src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp2
-rw-r--r--src/plugins/coreplugin/locator/filesystemfilter.cpp7
-rw-r--r--src/plugins/cpptools/cppfilesettingspage.cpp1
-rw-r--r--src/plugins/git/branchmodel.cpp16
-rw-r--r--src/plugins/qmlpreview/qmlpreviewruncontrol.cpp31
-rw-r--r--src/plugins/webassembly/webassemblyrunconfiguration.cpp1
13 files changed, 68 insertions, 75 deletions
diff --git a/doc/qtcreator/src/analyze/cpu-usage-analyzer.qdoc b/doc/qtcreator/src/analyze/cpu-usage-analyzer.qdoc
index c32e8854b03..2e931ee0499 100644
--- a/doc/qtcreator/src/analyze/cpu-usage-analyzer.qdoc
+++ b/doc/qtcreator/src/analyze/cpu-usage-analyzer.qdoc
@@ -460,7 +460,7 @@
\list 1
\li Perf events may be globally disabled on your system. The
- preconfigured Boot to Qt images come with perf events enabled. For
+ preconfigured Boot2Qt images come with perf events enabled. For
a custom configuration you need to make sure that the file
\c {/proc/sys/kernel/perf_event_paranoid} contains a value smaller
than \c {2}. For maximum flexibility in recording traces you can
diff --git a/doc/qtcreator/src/overview/creator-only/creator-mobile-targets.qdoc b/doc/qtcreator/src/overview/creator-only/creator-mobile-targets.qdoc
index 97daacfd62e..2451a078047 100644
--- a/doc/qtcreator/src/overview/creator-only/creator-mobile-targets.qdoc
+++ b/doc/qtcreator/src/overview/creator-only/creator-mobile-targets.qdoc
@@ -114,7 +114,7 @@
You can use the experimental Qt Application Manager plugin
(commercial only) to deploy, run, and debug applications on the
local Linux PC, remote generic SSH Linux targets, or
- \l{Embedded Devices}{embedded devices}.
+ \l{Boot2Qt Devices}{Boot2Qt devices}.
\endlist
\endif
*/
diff --git a/doc/qtcreator/src/overview/creator-only/creator-target-platforms.qdocinc b/doc/qtcreator/src/overview/creator-only/creator-target-platforms.qdocinc
index 91a8193feae..e54514e1c3b 100644
--- a/doc/qtcreator/src/overview/creator-only/creator-target-platforms.qdocinc
+++ b/doc/qtcreator/src/overview/creator-only/creator-target-platforms.qdocinc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2019 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -31,30 +31,21 @@
You can develop applications for the following platforms:
\list
-
\li Desktop
-
- \li Android
-
- \li Embedded
-
- \li Generic remote Linux
-
- \li iOS
-
- \li Microcontroller Units (MCU)
-
- \li QNX
-
- \li Universal Windows Platform (UWP)
-
- \li WebAssembly
-
+ \li \l{Connecting Android Devices}{Android}
+ \li \l{Connecting Bare Metal Devices}{Bare Metal}
+ \li Boot2Qt
+ \li \l{Connecting Embedded Linux Devices}{Generic Remote Linux}
+ \li \l{Connecting iOS Devices}{iOS}
+ \li \l{Connecting MCUs}{Microcontroller Units (MCU)} (commercial only)
+ \li \l{Connecting QNX Devices}{QNX}
+ \li \l{Qt for UWP}{Universal Windows Platform (UWP)}
+ \li \l{Building Applications for the Web}{WebAssembly}
\endlist
- \section2 Embedded Devices
+ \section2 Boot2Qt Devices
- The Boot to Qt stack can be made to run on a variety of hardware. For
+ The Boot2Qt stack can be made to run on a variety of hardware. For
Qt for Device Creation license holders, tooling is provided to customize the
contents of the stack as well as to take it into desired production
hardware.
@@ -65,8 +56,8 @@
\l{https://doc.qt.io/QtForDeviceCreation/index.html}{Qt for Device Creation}
documentation.
- \note Since \QC 4.9, only Boot to Qt version 5.9 and later are supported.
- To develop for earlier Boot to Qt versions, use \QC 4.8.
+ \note Since \QC 4.9, only Boot2Qt version 5.9 and later are supported.
+ To develop for earlier Boot2Qt versions, use \QC 4.8.
\section2 Mobile Devices
@@ -99,8 +90,8 @@
\li
\row
\li MCUs
- \li \image ok
- \li \image ok
+ \li
+ \li
\li \image ok
\row
\li QNX
diff --git a/doc/qtcreator/src/projects/creator-only/creator-projects-targets.qdoc b/doc/qtcreator/src/projects/creator-only/creator-projects-targets.qdoc
index e31a3d568a9..d18817cfe4d 100644
--- a/doc/qtcreator/src/projects/creator-only/creator-projects-targets.qdoc
+++ b/doc/qtcreator/src/projects/creator-only/creator-projects-targets.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2019 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -47,29 +47,20 @@
devices:
\list
-
- \li Android Device
-
- \li Bare Metal Device
-
- \li Boot2Qt Device (commercial only)
-
- \li \l {Emulator}{Boot2Qt Emulator Device} (commercial only)
-
- \li Generic Linux Device
-
- \li iOS Device
-
+ \li \l{Connecting Android Devices}{Android Device}
+ \li \l{Connecting Bare Metal Devices}{Bare Metal Device}
+ \li \l{https://doc.qt.io/QtForDeviceCreation/b2qt-installation-guides.html}
+ {Boot2Qt Device} (commercial only)
+ \li \l{Emulator}{Boot2Qt Emulator Device} (commercial only)
+ \li \l{Connecting Embedded Linux Devices}{Generic Remote Linux Device}
+ \li \l{Connecting iOS Devices}{iOS Device}
\li iOS Simulator
-
- \li QNX Device
-
- \li Windows Phone
-
+ \li \l{Connecting MCUs}{MCU Device} (commercial only)
+ \li \l{Connecting QNX Devices}{QNX Device}
+ \li \l{Building Applications for the Web}{WebAssembly Runtime}
+ \li \l{Qt for UWP}{Windows Phone}
\li Windows Phone Emulator
-
\li Windows Runtime (local)
-
\endlist
\section1 Filtering Kit Settings
diff --git a/qbs/modules/libclang/functions.js b/qbs/modules/libclang/functions.js
index 0c15a2a6283..d03358b3c6c 100644
--- a/qbs/modules/libclang/functions.js
+++ b/qbs/modules/libclang/functions.js
@@ -37,7 +37,8 @@ function llvmConfig(hostOS, qtcFunctions)
{
var llvmInstallDirFromEnv = Environment.getEnv("LLVM_INSTALL_DIR")
var llvmConfigVariants = [
- "llvm-config", "llvm-config-7", "llvm-config-8", "llvm-config-9"
+ // CLANG-UPGRADE-CHECK: Adapt once we require a new minimum version.
+ "llvm-config", "llvm-config-8", "llvm-config-9", "llvm-config-10", "llvm-config-11", "llvm-config-12"
];
// Prefer llvm-config* from LLVM_INSTALL_DIR
diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py
index 80d8d47feef..7df90b65db2 100644
--- a/share/qtcreator/debugger/dumper.py
+++ b/share/qtcreator/debugger/dumper.py
@@ -39,7 +39,7 @@ try:
# we do not need to hard fail in cases of partial python installation
# that will never use this.
import json
-except ModuleNotFoundError:
+except:
print("Python module json not found. "
"Native combined debugging might not work.")
pass
diff --git a/src/plugins/clangtools/clangtoolruncontrol.cpp b/src/plugins/clangtools/clangtoolruncontrol.cpp
index 2d077a15022..5eca0a6515b 100644
--- a/src/plugins/clangtools/clangtoolruncontrol.cpp
+++ b/src/plugins/clangtools/clangtoolruncontrol.cpp
@@ -448,7 +448,7 @@ void ClangToolRunWorker::finalize()
{
const QString toolName = tool()->name();
if (m_filesNotAnalyzed.size() != 0) {
- appendMessage(tr("Error: Failed to analyze %1 files.").arg(m_filesAnalyzed.size()),
+ appendMessage(tr("Error: Failed to analyze %1 files.").arg(m_filesNotAnalyzed.size()),
ErrorMessageFormat);
Target *target = runControl()->target();
if (target && target->activeBuildConfiguration() && !target->activeBuildConfiguration()->buildDirectory().exists()
diff --git a/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp b/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp
index a7f1d88b52c..8b562a97e37 100644
--- a/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp
+++ b/src/plugins/compilationdatabaseprojectmanager/compilationdatabaseproject.cpp
@@ -201,7 +201,6 @@ RawProjectPart makeRawProjectPart(const Utils::FilePath &projectFile,
kitInfo.cToolChain = toolchainFromFlags(kit,
originalFlags,
ProjectExplorer::Constants::C_LANGUAGE_ID);
- ToolChainKitAspect::setToolChain(kit, kitInfo.cToolChain);
}
addDriverModeFlagIfNeeded(kitInfo.cToolChain, flags, originalFlags);
rpp.setFlagsForC({kitInfo.cToolChain, flags});
@@ -210,7 +209,6 @@ RawProjectPart makeRawProjectPart(const Utils::FilePath &projectFile,
kitInfo.cxxToolChain = toolchainFromFlags(kit,
originalFlags,
ProjectExplorer::Constants::CXX_LANGUAGE_ID);
- ToolChainKitAspect::setToolChain(kit, kitInfo.cxxToolChain);
}
addDriverModeFlagIfNeeded(kitInfo.cxxToolChain, flags, originalFlags);
rpp.setFlagsForCxx({kitInfo.cxxToolChain, flags});
diff --git a/src/plugins/coreplugin/locator/filesystemfilter.cpp b/src/plugins/coreplugin/locator/filesystemfilter.cpp
index 41ad77e5c1e..dcb5925842a 100644
--- a/src/plugins/coreplugin/locator/filesystemfilter.cpp
+++ b/src/plugins/coreplugin/locator/filesystemfilter.cpp
@@ -102,7 +102,7 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<LocatorF
const QStringList files = dirInfo.entryList(fileFilter,
QDir::Name|QDir::IgnoreCase|QDir::LocaleAware);
- const QRegularExpression regExp = createRegExp(entryFileName, caseSensitivity_);
+ QRegularExpression regExp = createRegExp(entryFileName, caseSensitivity_);
if (!regExp.isValid())
return {};
@@ -122,7 +122,10 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<LocatorF
}
}
// file names can match with +linenumber or :linenumber
- const EditorManager::FilePathInfo fp = EditorManager::splitLineAndColumnNumber(entry);
+ const EditorManager::FilePathInfo fp = EditorManager::splitLineAndColumnNumber(entryFileName);
+ regExp = createRegExp(fp.filePath, caseSensitivity_);
+ if (!regExp.isValid())
+ return {};
const QString fileName = QFileInfo(fp.filePath).fileName();
for (const QString &file : files) {
if (future.isCanceled())
diff --git a/src/plugins/cpptools/cppfilesettingspage.cpp b/src/plugins/cpptools/cppfilesettingspage.cpp
index 7589b201857..68f9242cebf 100644
--- a/src/plugins/cpptools/cppfilesettingspage.cpp
+++ b/src/plugins/cpptools/cppfilesettingspage.cpp
@@ -324,6 +324,7 @@ void CppFileSettingsWidget::apply()
rc.sourceSuffix = m_ui.sourceSuffixComboBox->currentText();
rc.headerSearchPaths = trimmedPaths(m_ui.headerSearchPathsEdit->text());
rc.sourceSearchPaths = trimmedPaths(m_ui.sourceSearchPathsEdit->text());
+ rc.licenseTemplatePath = licenseTemplatePath();
if (rc == *m_settings)
return;
diff --git a/src/plugins/git/branchmodel.cpp b/src/plugins/git/branchmodel.cpp
index 0a40144948c..73c7ce5ba85 100644
--- a/src/plugins/git/branchmodel.cpp
+++ b/src/plugins/git/branchmodel.cpp
@@ -150,6 +150,11 @@ public:
return fn;
}
+ QString fullRef(bool includePrefix = false) const
+ {
+ return fullName(includePrefix).join('/');
+ }
+
void insert(const QStringList &path, BranchNode *n)
{
BranchNode *current = this;
@@ -186,7 +191,7 @@ public:
}
return names;
}
- return {fullName().join('/')};
+ return {fullRef()};
}
int rowOf(BranchNode *node)
@@ -346,7 +351,7 @@ QVariant BranchModel::data(const QModelIndex &index, int role) const
return res;
}
case Qt::EditRole:
- return index.column() == 0 ? node->fullName().join('/') : QVariant();
+ return index.column() == 0 ? node->fullRef() : QVariant();
case Qt::ToolTipRole:
if (!node->isLeaf())
return QVariant();
@@ -381,7 +386,7 @@ bool BranchModel::setData(const QModelIndex &index, const QVariant &value, int r
if (newName.isEmpty())
return false;
- const QString oldName = node->fullName().join('/');
+ const QString oldName = node->fullRef();
if (oldName == newName)
return false;
@@ -525,7 +530,7 @@ QString BranchModel::fullName(const QModelIndex &idx, bool includePrefix) const
return QString();
if (node == d->headNode)
return QString("HEAD");
- return node->fullName(includePrefix).join('/');
+ return node->fullRef(includePrefix);
}
QStringList BranchModel::localBranchNames() const
@@ -901,7 +906,8 @@ void BranchModel::updateUpstreamStatus(BranchNode *node)
{
if (node->tracking.isEmpty())
return;
- VcsCommand *command = d->client->asyncUpstreamStatus(d->workingDirectory, node->name, node->tracking);
+ VcsCommand *command = d->client->asyncUpstreamStatus(
+ d->workingDirectory, node->fullRef(), node->tracking);
QObject::connect(command, &VcsCommand::stdOutText, node, [this, node](const QString &text) {
const QStringList split = text.trimmed().split('\t');
QTC_ASSERT(split.size() == 2, return);
diff --git a/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp b/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp
index 9f22796689e..c513a580f31 100644
--- a/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp
+++ b/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp
@@ -134,21 +134,22 @@ LocalQmlPreviewSupport::LocalQmlPreviewSupport(ProjectExplorer::RunControl *runC
const auto currentTarget = runControl->target();
const auto *qmlBuildSystem = qobject_cast<QmlProjectManager::QmlBuildSystem *>(currentTarget->buildSystem());
- const auto aspect = runControl->aspect<QmlProjectManager::QmlMainFileAspect>();
- const QString mainScript = aspect->mainScript();
- const QString currentFile = aspect->currentFile();
-
- const QString mainScriptFromProject = qmlBuildSystem->targetFile(
- Utils::FilePath::fromString(mainScript)).toString();
-
- const QString currentFileFromProject = qmlBuildSystem->targetFile(
- Utils::FilePath::fromString(currentFile)).toString();
-
- if (!currentFile.isEmpty() && qmlProjectRunConfigurationArguments.last().contains(mainScriptFromProject)) {
- qmlProjectRunConfigurationArguments.removeLast();
- auto commandLine = Utils::CommandLine(runnable.commandLine().executable(), qmlProjectRunConfigurationArguments);
- commandLine.addArg(currentFile);
- runnable.setCommandLine(commandLine);
+ if (const auto aspect = runControl->aspect<QmlProjectManager::QmlMainFileAspect>()) {
+ const QString mainScript = aspect->mainScript();
+ const QString currentFile = aspect->currentFile();
+
+ const QString mainScriptFromProject = qmlBuildSystem->targetFile(
+ Utils::FilePath::fromString(mainScript)).toString();
+
+ const QString currentFileFromProject = qmlBuildSystem->targetFile(
+ Utils::FilePath::fromString(currentFile)).toString();
+
+ if (!currentFile.isEmpty() && qmlProjectRunConfigurationArguments.last().contains(mainScriptFromProject)) {
+ qmlProjectRunConfigurationArguments.removeLast();
+ auto commandLine = Utils::CommandLine(runnable.commandLine().executable(), qmlProjectRunConfigurationArguments);
+ commandLine.addArg(currentFile);
+ runnable.setCommandLine(commandLine);
+ }
}
Utils::QtcProcess::addArg(&runnable.commandLineArguments,
diff --git a/src/plugins/webassembly/webassemblyrunconfiguration.cpp b/src/plugins/webassembly/webassemblyrunconfiguration.cpp
index 2bb8861b714..977e61b0fe4 100644
--- a/src/plugins/webassembly/webassemblyrunconfiguration.cpp
+++ b/src/plugins/webassembly/webassemblyrunconfiguration.cpp
@@ -51,6 +51,7 @@ static CommandLine emrunCommand(Target *target, const QString &browser, const QS
"--browser", browser,
"--port", port,
"--no_emrun_detect",
+ "--serve_after_close",
html.toString()
});
}