diff --git a/doc/qtcreator/images/qmldesigner-element-properties.png b/doc/qtcreator/images/qmldesigner-element-properties.png index 84d289378ed..05be05eae92 100644 Binary files a/doc/qtcreator/images/qmldesigner-element-properties.png and b/doc/qtcreator/images/qmldesigner-element-properties.png differ diff --git a/doc/qtcreator/images/qmldesigner-properties-explicit-base.png b/doc/qtcreator/images/qmldesigner-properties-explicit-base.png index 9ac69d413ee..851663231d2 100644 Binary files a/doc/qtcreator/images/qmldesigner-properties-explicit-base.png and b/doc/qtcreator/images/qmldesigner-properties-explicit-base.png differ diff --git a/doc/qtcreator/images/qmldesigner-properties-explicit-state1.png b/doc/qtcreator/images/qmldesigner-properties-explicit-state1.png index dc4d5ab689b..e4561310f4d 100644 Binary files a/doc/qtcreator/images/qmldesigner-properties-explicit-state1.png and b/doc/qtcreator/images/qmldesigner-properties-explicit-state1.png differ diff --git a/doc/qtcreator/images/qtquick-designer-abstract-button-properties.png b/doc/qtcreator/images/qtquick-designer-abstract-button-properties.png index f4743b9ddba..be462966dca 100644 Binary files a/doc/qtcreator/images/qtquick-designer-abstract-button-properties.png and b/doc/qtcreator/images/qtquick-designer-abstract-button-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-combobox-properties.png b/doc/qtcreator/images/qtquick-designer-combobox-properties.png index bed06331ba5..0204cedf317 100644 Binary files a/doc/qtcreator/images/qtquick-designer-combobox-properties.png and b/doc/qtcreator/images/qtquick-designer-combobox-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-control-properties.png b/doc/qtcreator/images/qtquick-designer-control-properties.png index dc85f1afb2b..b80c2f75e68 100644 Binary files a/doc/qtcreator/images/qtquick-designer-control-properties.png and b/doc/qtcreator/images/qtquick-designer-control-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-dial-properties.png b/doc/qtcreator/images/qtquick-designer-dial-properties.png index aa0509f3696..373b4ded07e 100644 Binary files a/doc/qtcreator/images/qtquick-designer-dial-properties.png and b/doc/qtcreator/images/qtquick-designer-dial-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-flickable-properties.png b/doc/qtcreator/images/qtquick-designer-flickable-properties.png index deae328a7ab..e4580f26dff 100644 Binary files a/doc/qtcreator/images/qtquick-designer-flickable-properties.png and b/doc/qtcreator/images/qtquick-designer-flickable-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-gridview-properties.png b/doc/qtcreator/images/qtquick-designer-gridview-properties.png index 5de81cf3d95..2bb0ebf9268 100644 Binary files a/doc/qtcreator/images/qtquick-designer-gridview-properties.png and b/doc/qtcreator/images/qtquick-designer-gridview-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-listview-properties.png b/doc/qtcreator/images/qtquick-designer-listview-properties.png index 101e328c333..3a52df83d3d 100644 Binary files a/doc/qtcreator/images/qtquick-designer-listview-properties.png and b/doc/qtcreator/images/qtquick-designer-listview-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-pathview-properties.png b/doc/qtcreator/images/qtquick-designer-pathview-properties.png index e998ea10ac3..f2fb4286e0e 100644 Binary files a/doc/qtcreator/images/qtquick-designer-pathview-properties.png and b/doc/qtcreator/images/qtquick-designer-pathview-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-progressbar-properties.png b/doc/qtcreator/images/qtquick-designer-progressbar-properties.png index d1d69086d95..ee54a6b470b 100644 Binary files a/doc/qtcreator/images/qtquick-designer-progressbar-properties.png and b/doc/qtcreator/images/qtquick-designer-progressbar-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-properties-font.png b/doc/qtcreator/images/qtquick-designer-properties-font.png new file mode 100644 index 00000000000..edd2be482bc Binary files /dev/null and b/doc/qtcreator/images/qtquick-designer-properties-font.png differ diff --git a/doc/qtcreator/images/qtquick-designer-range-slider-properties.png b/doc/qtcreator/images/qtquick-designer-range-slider-properties.png index be488ea72da..d5da30cc558 100644 Binary files a/doc/qtcreator/images/qtquick-designer-range-slider-properties.png and b/doc/qtcreator/images/qtquick-designer-range-slider-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-tabbar-properties.png b/doc/qtcreator/images/qtquick-designer-tabbar-properties.png index be53f0ba01d..819bf713b7e 100644 Binary files a/doc/qtcreator/images/qtquick-designer-tabbar-properties.png and b/doc/qtcreator/images/qtquick-designer-tabbar-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-text-input-properties.png b/doc/qtcreator/images/qtquick-designer-text-input-properties.png index ab88caacef5..5897a067944 100644 Binary files a/doc/qtcreator/images/qtquick-designer-text-input-properties.png and b/doc/qtcreator/images/qtquick-designer-text-input-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-text-properties.png b/doc/qtcreator/images/qtquick-designer-text-properties.png index 7d348aa266c..77d41ab5246 100644 Binary files a/doc/qtcreator/images/qtquick-designer-text-properties.png and b/doc/qtcreator/images/qtquick-designer-text-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-toolbar-properties.png b/doc/qtcreator/images/qtquick-designer-toolbar-properties.png index 0485769b236..3b1164e4ad6 100644 Binary files a/doc/qtcreator/images/qtquick-designer-toolbar-properties.png and b/doc/qtcreator/images/qtquick-designer-toolbar-properties.png differ diff --git a/doc/qtcreator/images/qtquick-designer-tumbler-properties.png b/doc/qtcreator/images/qtquick-designer-tumbler-properties.png index 902dbd6bb45..35c67e064f8 100644 Binary files a/doc/qtcreator/images/qtquick-designer-tumbler-properties.png and b/doc/qtcreator/images/qtquick-designer-tumbler-properties.png differ diff --git a/doc/qtcreator/images/qtquick-item-properties-common.png b/doc/qtcreator/images/qtquick-item-properties-common.png index 980fef5ea4f..1aca536ff68 100644 Binary files a/doc/qtcreator/images/qtquick-item-properties-common.png and b/doc/qtcreator/images/qtquick-item-properties-common.png differ diff --git a/doc/qtcreator/src/qtquick/library/qtquick-controls.qdoc b/doc/qtcreator/src/qtquick/library/qtquick-controls.qdoc index beedc128d9d..40cfee271c0 100644 --- a/doc/qtcreator/src/qtquick/library/qtquick-controls.qdoc +++ b/doc/qtcreator/src/qtquick/library/qtquick-controls.qdoc @@ -556,11 +556,14 @@ default, they do not snap to step size, but you can set them to snap to it either while being dragged or after being released. + You can set slider orientation to horizontal or vertical in the + \uicontrol Orientation field. + Select the \uicontrol Live check box to provide live updates of the value properties. - You can set slider orientation to horizontal or vertical in the - \uicontrol Orientation field. + Modify the \uicontrol {Touch drag threshold} to determine the threshold at + which a touch drag event will be initiated. For more information, watch the following video: diff --git a/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc b/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc index 4fe046ffd75..2ecef89f322 100644 --- a/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc +++ b/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc @@ -78,7 +78,8 @@ size, emphasis, aligment, and spacing of the text. Specify the font size in either points or pixels in the \uicontrol Size field. - \image qtquick-designer-text-properties.png "Text component properties" + \image qtquick-designer-text-properties.png "Text component general properties" + \image qtquick-designer-properties-font.png "Text component font properties" To display custom fonts in the list of available fonts in the \uicontrol Font field, you need to first add them to \l Library: diff --git a/doc/qtcreator/src/qtquick/qtquick-properties-view.qdoc b/doc/qtcreator/src/qtquick/qtquick-properties-view.qdoc index ba7217b7993..0da66229a86 100644 --- a/doc/qtcreator/src/qtquick/qtquick-properties-view.qdoc +++ b/doc/qtcreator/src/qtquick/qtquick-properties-view.qdoc @@ -98,12 +98,14 @@ When editing states, you can easily see which values are explicitly set in the current state and which values are derived from the base state. - The following images illustrate this. In the base state, the \uicontrol Size - (1) and \uicontrol Colors (2) values are explicitly set and highlighted. + The following images illustrate this. In the base state, the + \uicontrol Position (1) and \uicontrol Size (2) values are explicitly set + and highlighted. \image qmldesigner-properties-explicit-base.png "Explicitly set properties" - In \uicontrol State1, only the color (1) is explicitly set and highlighted. + In \uicontrol State1, only \uicontrol Position is explicitly set and + highlighted. \image qmldesigner-properties-explicit-state1.png "Explicitly set properties" diff --git a/doc/qtdesignstudio/images/studio-logic-helpers.png b/doc/qtdesignstudio/images/studio-logic-helpers.png index 5b0feadc59a..5662b7a351e 100644 Binary files a/doc/qtdesignstudio/images/studio-logic-helpers.png and b/doc/qtdesignstudio/images/studio-logic-helpers.png differ diff --git a/doc/qtdesignstudio/images/studio-svgpath-properties.png b/doc/qtdesignstudio/images/studio-svgpath-properties.png index f0c9685f845..dafb9491c50 100644 Binary files a/doc/qtdesignstudio/images/studio-svgpath-properties.png and b/doc/qtdesignstudio/images/studio-svgpath-properties.png differ diff --git a/doc/qtdesignstudio/src/qtquickdesigner-components/qtdesignstudio-logic-helpers.qdoc b/doc/qtdesignstudio/src/qtquickdesigner-components/qtdesignstudio-logic-helpers.qdoc index 5d541d40427..22c92ba786b 100644 --- a/doc/qtdesignstudio/src/qtquickdesigner-components/qtdesignstudio-logic-helpers.qdoc +++ b/doc/qtdesignstudio/src/qtquickdesigner-components/qtdesignstudio-logic-helpers.qdoc @@ -44,9 +44,14 @@ Logic helpers are invisible components that you can use in connection with controls, such as a \l {slider-control}{Slider} or \l {Check Box}. - To use a logic helper, drag-and-drop it from \uicontrol Library > - \uicontrol {Studio Logic Helper} to \uicontrol Navigator. The following - sections describe the different types of logic helpers in more detail. + To use a logic helper, drag-and-drop it from \l Library > + \uicontrol Components > \uicontrol {Qt Quick Studio Logic Helper} to + \l Navigator. If you cannot find the logic helpers in \uicontrol Library, + you need to add the \uicontrol {Qt Quick Studio Logic Helper} module to + your project, as described in \l {Adding and Removing Modules}. + + The following sections describe the different types of logic helpers in more + detail. \section1 Boolean Helpers diff --git a/scripts/deployqt.py b/scripts/deployqt.py index e032f45decb..ab105f308ac 100755 --- a/scripts/deployqt.py +++ b/scripts/deployqt.py @@ -110,12 +110,14 @@ def is_debug(fpath): # bootstrap exception if coredebug.search(fpath): return True - try: + # try to use dumpbin (MSVC) or objdump (MinGW), otherwise ship all .dlls + if which('dumpbin'): output = subprocess.check_output(['dumpbin', '/imports', fpath]) - return coredebug.search(output.decode(encoding)) != None - except OSError: - # dumpbin is not there, maybe MinGW ? Just ship all .dlls. + elif which('objdump'): + output = subprocess.check_output(['objdump', '-p', fpath]) + else: return debug_build + return coredebug.search(output.decode(encoding)) != None def is_ignored_windows_file(use_debug, basepath, filename): ignore_patterns = ['.lib', '.pdb', '.exp', '.ilk'] diff --git a/src/libs/3rdparty/cplusplus/Parser.cpp b/src/libs/3rdparty/cplusplus/Parser.cpp index b5cf315e64f..7116f1abf4f 100644 --- a/src/libs/3rdparty/cplusplus/Parser.cpp +++ b/src/libs/3rdparty/cplusplus/Parser.cpp @@ -39,7 +39,7 @@ #define CPLUSPLUS_NO_DEBUG_RULE #define MAX_EXPRESSION_DEPTH 1000 -#define MAX_STATEMENT_DEPTH 100 +#define MAX_STATEMENT_DEPTH 300 using namespace CPlusPlus; diff --git a/src/libs/clangsupport/filepathstoragesources.h b/src/libs/clangsupport/filepathstoragesources.h index 23293be1f7f..2194e75b955 100644 --- a/src/libs/clangsupport/filepathstoragesources.h +++ b/src/libs/clangsupport/filepathstoragesources.h @@ -82,6 +82,16 @@ public: return !(first == second); } + friend bool operator==(const FileNameEntry &first, const FileNameView &second) + { + return first.directoryId == second.directoryId && first.fileName == second.fileName; + } + + friend bool operator!=(const FileNameEntry &first, const FileNameView &second) + { + return !(first == second); + } + operator FileNameView() const { return {fileName, directoryId}; } operator Utils::SmallString() && { return std::move(fileName); } diff --git a/src/plugins/coreplugin/outputwindow.cpp b/src/plugins/coreplugin/outputwindow.cpp index 7568ec3f368..1e69c475f73 100644 --- a/src/plugins/coreplugin/outputwindow.cpp +++ b/src/plugins/coreplugin/outputwindow.cpp @@ -526,6 +526,7 @@ void OutputWindow::reset() flush(); d->queueTimer.stop(); d->formatter.reset(); + d->scrollToBottom = true; if (!d->queuedOutput.isEmpty()) { d->queuedOutput.clear(); d->formatter.appendMessage(tr("[Discarding excessive amount of pending output.]\n"), diff --git a/src/plugins/debugger/peripheralregisterhandler.h b/src/plugins/debugger/peripheralregisterhandler.h index a7f8924113e..a0382d3a58c 100644 --- a/src/plugins/debugger/peripheralregisterhandler.h +++ b/src/plugins/debugger/peripheralregisterhandler.h @@ -82,8 +82,8 @@ class PeripheralRegisterValue final { public: PeripheralRegisterValue(quint64 v = 0) : v(v) {} - bool operator==(const PeripheralRegisterValue &other) { return v == other.v; } - bool operator!=(const PeripheralRegisterValue &other) { return !operator==(other); } + bool operator==(const PeripheralRegisterValue &other) const { return v == other.v; } + bool operator!=(const PeripheralRegisterValue &other) const { return !operator==(other); } bool fromString(const QString &string, PeripheralRegisterFormat fmt); QString toString(int size, PeripheralRegisterFormat fmt) const; diff --git a/src/plugins/genericprojectmanager/genericproject.cpp b/src/plugins/genericprojectmanager/genericproject.cpp index 2157c62e237..e2e1715b6ce 100644 --- a/src/plugins/genericprojectmanager/genericproject.cpp +++ b/src/plugins/genericprojectmanager/genericproject.cpp @@ -251,7 +251,14 @@ GenericBuildSystem::GenericBuildSystem(Target *target) connect(&m_deployFileWatcher, &FileSystemWatcher::fileChanged, this, &GenericBuildSystem::updateDeploymentData); - connect(target, &Target::activeBuildConfigurationChanged, this, [this] { refresh(Everything); }); + connect(target, &Target::activeBuildConfigurationChanged, this, [this, target] { + if (target == project()->activeTarget()) + refresh(Everything); + }); + connect(project(), &Project::activeTargetChanged, this, [this, target] { + if (target == project()->activeTarget()) + refresh(Everything); + }); } GenericBuildSystem::~GenericBuildSystem() @@ -553,6 +560,8 @@ void GenericBuildSystem::refreshCppCodeModel() { if (!m_cppCodeModelUpdater) return; + if (target() != project()->activeTarget()) + return; QtSupport::CppKitInfo kitInfo(kit()); QTC_ASSERT(kitInfo.isValid(), return); diff --git a/src/plugins/projectexplorer/kitmanager.cpp b/src/plugins/projectexplorer/kitmanager.cpp index b31d51c737e..f1100358aa8 100644 --- a/src/plugins/projectexplorer/kitmanager.cpp +++ b/src/plugins/projectexplorer/kitmanager.cpp @@ -240,10 +240,11 @@ void KitManager::restoreKits() kitsToCheck.clear(); // Remove replacement kits for which the original kit has turned up again. - erase(resultList, [&resultList](const std::unique_ptr &k) { - return k->isReplacementKit() && contains(resultList, [&k](const std::unique_ptr &other) { - return other->id() == k->id() && other != k; - }); + Utils::erase(resultList, [&resultList](const std::unique_ptr &k) { + return k->isReplacementKit() + && contains(resultList, [&k](const std::unique_ptr &other) { + return other->id() == k->id() && other != k; + }); }); static const auto kitMatchesAbiList = [](const Kit *kit, const Abis &abis) { diff --git a/src/shared/json/json.cpp b/src/shared/json/json.cpp index 579fd21649d..93a87b715b2 100644 --- a/src/shared/json/json.cpp +++ b/src/shared/json/json.cpp @@ -1630,7 +1630,7 @@ bool JsonArray::operator==(const JsonArray &other) const return !other.a->length; if (!other.a) return !a->length; - if (a->length != other.a->length) + if (a->length.val != other.a->length.val) return false; for (int i = 0; i < (int)a->length; ++i) { @@ -2594,7 +2594,7 @@ bool JsonObject::operator==(const JsonObject &other) const return !other.o->length; if (!other.o) return !o->length; - if (o->length != other.o->length) + if (o->length.val != other.o->length.val) return false; for (uint32_t i = 0; i < o->length; ++i) { diff --git a/src/shared/qbs b/src/shared/qbs index f9ad1f5844a..33634338b92 160000 --- a/src/shared/qbs +++ b/src/shared/qbs @@ -1 +1 @@ -Subproject commit f9ad1f5844af1e42c8de3cf10f6a9597924d9f9e +Subproject commit 33634338b925490d1ee713d30670e5c3f96e9139 diff --git a/src/tools/clangbackend/source/diagnosticsetiterator.h b/src/tools/clangbackend/source/diagnosticsetiterator.h index 0369e91999d..eb1ceac7a0d 100644 --- a/src/tools/clangbackend/source/diagnosticsetiterator.h +++ b/src/tools/clangbackend/source/diagnosticsetiterator.h @@ -71,12 +71,12 @@ public: return DiagnosticSetIterator(cxTranslationUnit, cxDiagnosticSet, oldIndex); } - bool operator==(const DiagnosticSetIterator &other) + bool operator==(const DiagnosticSetIterator &other) const { return index == other.index && cxDiagnosticSet == other.cxDiagnosticSet; } - bool operator!=(const DiagnosticSetIterator &other) + bool operator!=(const DiagnosticSetIterator &other) const { return index != other.index || cxDiagnosticSet != other.cxDiagnosticSet; }