diff --git a/dist/changes-4.11.0.md b/dist/changes-4.11.0.md index fa43c4d0557..218d7a29475 100644 --- a/dist/changes-4.11.0.md +++ b/dist/changes-4.11.0.md @@ -101,6 +101,7 @@ you can check out from the public Git repository. For example: ### Qbs +* Updated to Qbs version 1.15.0 * Fixed that include paths were not correctly categorized into user and system paths for the code model diff --git a/doc/config/qtcreator-project.qdocconf b/doc/config/qtcreator-project.qdocconf index b6710edb436..ed365b06d83 100644 --- a/doc/config/qtcreator-project.qdocconf +++ b/doc/config/qtcreator-project.qdocconf @@ -33,6 +33,7 @@ HTML.extraimages = images/commercial.png qhp.QtCreator.extraFiles = images/commercial.png depends += qtwidgets \ + qtcmake \ qtcore \ qtqml \ qtquick \ diff --git a/doc/images/qmldesigner-alignment.png b/doc/images/qmldesigner-alignment.png new file mode 100644 index 00000000000..3d1fa313a11 Binary files /dev/null and b/doc/images/qmldesigner-alignment.png differ diff --git a/doc/images/qmldesigner-anchor-buttons.png b/doc/images/qmldesigner-anchor-buttons.png index 9833f80b45a..de76f020b7a 100644 Binary files a/doc/images/qmldesigner-anchor-buttons.png and b/doc/images/qmldesigner-anchor-buttons.png differ diff --git a/doc/images/qmldesigner-anchors.png b/doc/images/qmldesigner-anchors.png index 6fb2047ceeb..029ed520a20 100644 Binary files a/doc/images/qmldesigner-anchors.png and b/doc/images/qmldesigner-anchors.png differ diff --git a/doc/images/qmldesigner-distribute-objects.png b/doc/images/qmldesigner-distribute-objects.png new file mode 100644 index 00000000000..b7e036ba4bc Binary files /dev/null and b/doc/images/qmldesigner-distribute-objects.png differ diff --git a/doc/images/qmldesigner-distribute-spacing-evenly.png b/doc/images/qmldesigner-distribute-spacing-evenly.png new file mode 100644 index 00000000000..937d77f679b Binary files /dev/null and b/doc/images/qmldesigner-distribute-spacing-evenly.png differ diff --git a/doc/images/qmldesigner-distribute-spacing-pixels.png b/doc/images/qmldesigner-distribute-spacing-pixels.png new file mode 100644 index 00000000000..d6f690affe2 Binary files /dev/null and b/doc/images/qmldesigner-distribute-spacing-pixels.png differ diff --git a/doc/images/qmldesigner-distribute-spacing-x.png b/doc/images/qmldesigner-distribute-spacing-x.png new file mode 100644 index 00000000000..bba6c1d7a70 Binary files /dev/null and b/doc/images/qmldesigner-distribute-spacing-x.png differ diff --git a/doc/src/mcu/creator-mcu-dev.qdoc b/doc/src/mcu/creator-mcu-dev.qdoc index 90d5df54865..33aea4fc410 100644 --- a/doc/src/mcu/creator-mcu-dev.qdoc +++ b/doc/src/mcu/creator-mcu-dev.qdoc @@ -31,7 +31,7 @@ \title Connecting MCUs - \l{Qt for MCU} enables you to use subsets of QML and Qt Quick Controls + Qt for MCU enables you to use subsets of QML and Qt Quick Controls to create user interfaces for devices that are powered by microcontroller units (MCU). It includes a new graphics rendering engine that has a low memory footprint and is optimized for MCUs and other resource-constrained diff --git a/doc/src/projects/creator-only/creator-projects-settings-build.qdoc b/doc/src/projects/creator-only/creator-projects-settings-build.qdoc index 5c490b21579..b0d28787d2f 100644 --- a/doc/src/projects/creator-only/creator-projects-settings-build.qdoc +++ b/doc/src/projects/creator-only/creator-projects-settings-build.qdoc @@ -183,7 +183,7 @@ Since Qt 5.11, you can compile QML source code into the final binary. This improves the startup time of the application and eliminates the need to deploy QML files together with the application. For more information, see - \l{Compiling QML Ahead of Time}. + \l{Ahead-of-Time Compilation}. \QC new project wizards create Qt Quick projects that can be compiled, because they are set up to use the Qt Resource System. To compile Qt Quick diff --git a/doc/src/qtquick/qtquick-components.qdoc b/doc/src/qtquick/qtquick-components.qdoc index e7908915ff3..c21bbe559da 100644 --- a/doc/src/qtquick/qtquick-components.qdoc +++ b/doc/src/qtquick/qtquick-components.qdoc @@ -154,6 +154,7 @@ \list \li \l{Setting Bindings} \li \l{Setting Anchors and Margins} + \li \l{Aligning and Distributing Items} \li \l{Using Positioners} \li \l{Using Layouts} \li \l{Organizing Items} @@ -252,9 +253,9 @@ Rectangle { id: rectangle2 anchors.left: rectangle1.right - anchors.leftMargin: 15 + anchors.leftMargin: 10 anchors.bottom: parent.bottom - anchors.bottomMargin: 15 + anchors.bottomMargin: 10 // } \endqml @@ -263,6 +264,60 @@ item. Margins only have meaning for anchors. They do not take any effect when using layouts or absolute positioning. + \section2 Aligning and Distributing Items + + When you're working with a group of items, you can select them to align + and distribute them evenly. As the positions of the items are fixed, you + cannot apply these functions to anchored items. For scalability, you can + anchor the aligned and distributed items when your design is ready. + + \image qmldesigner-alignment.png "Aligning sibling items" + + Select the buttons in the \uicontrol Align group to align the top/bottom + or left/right edges of the items in the group to the one farthest away from + the center of the group. For example, when left-aligning, the items are + aligned to the leftmost item. You can also align the horizontal/vertical + centers of items, or both, as in the image above. + + In the \uicontrol {Align to} field, select whether to align the items in + respect to the selection, the root item, or a \e {key object} that you + select in the \uicontrol {Key object} field. The key object must be a part + of the selection. + + You can distribute either \e objects or the \e spacing between them. If the + objects or spacing cannot be distributed to equal pixel values without + ending up with half pixels, you receive a notification. You can either allow + \QDS to distribute objects or spacing using the closest values possible or + tweak your design so that the objects and spacing can be distributed + perfectly. + + When distributing objects, you can select whether the distance between + them is calculated from their top/bottom or left/right edges or their + horizontal/vertical center. + + \image qmldesigner-distribute-objects.png "Distribute objects buttons" + + You can distribute spacing either evenly within a target area or at + specified distances, calculated from a starting point. + + You can select the orientation in which the objects are distributed evenly + within the target area: horizontally along the x axis or vertically along + the y axis. + + \image qmldesigner-distribute-spacing-evenly.png "Distribute spacing evenly" + + Alternatively, you can distribute spacing in pixels by selecting one of the + starting point buttons: left/right or top/bottom edge of the target area, + or its horizontal/vertical center. Note that some items might end up outside + the target area. + + \image qmldesigner-distribute-spacing-pixels.png "Distribute spacing in pixels" + + You can set the space between objects in pixels. You can + disable the distribution of spacing in pixels by clicking + the \inlineimage qmldesigner-distribute-spacing-x.png + button. + \section2 Using Positioners \l{Important Concepts In Qt Quick - Positioning#positioners} diff --git a/doc/src/qtquick/qtquick-live-preview.qdoc b/doc/src/qtquick/qtquick-live-preview.qdoc index 4586f098f45..c93eaf4aaf0 100644 --- a/doc/src/qtquick/qtquick-live-preview.qdoc +++ b/doc/src/qtquick/qtquick-live-preview.qdoc @@ -73,7 +73,7 @@ \endif \li \l{Previewing in Browsers} - You can open \l{http://qt-webassembly.io/designviewer/}{\QDV} + You can open \l{https://qt-webassembly.io/designviewer/}{\QDV} in a browser and load applications to it. \endlist */ diff --git a/doc/src/qtquick/qtquick-profiler.qdoc b/doc/src/qtquick/qtquick-profiler.qdoc index 0b772d8e062..fef88195d72 100644 --- a/doc/src/qtquick/qtquick-profiler.qdoc +++ b/doc/src/qtquick/qtquick-profiler.qdoc @@ -342,8 +342,8 @@ In order to understand the scene graph category, it's important to understand how the Qt Quick scene graph works. See - \l {Qt Quick Scene Graph} and \l {Qt Quick Scene Graph Renderer} for a - detailed description. The following events are reported in the + \l {Qt Quick Scene Graph} and \l {Qt Quick Scene Graph Default Renderer} + for a detailed description. The following events are reported in the \uicontrol {Scene Graph} category. Not all events are generated by all render loops. In the Windows and Basic render loops everything runs in the same thread and the distinction between GUI thread and render thread is diff --git a/src/plugins/autotest/testrunner.cpp b/src/plugins/autotest/testrunner.cpp index ad5ad1a5f51..fde24feb741 100644 --- a/src/plugins/autotest/testrunner.cpp +++ b/src/plugins/autotest/testrunner.cpp @@ -619,6 +619,7 @@ void TestRunner::debugTests() runControl, &RunControl::initiateStop); connect(runControl, &RunControl::stopped, this, &TestRunner::onFinished); + m_finishDebugConnect = connect(runControl, &RunControl::finished, this, &TestRunner::onFinished); ProjectExplorerPlugin::startRunControl(runControl); if (useOutputProcessor && AutotestPlugin::settings()->popupOnStart) AutotestPlugin::popupResultsPane(); @@ -715,6 +716,7 @@ void TestRunner::onFinished() m_selectedTests.clear(); disconnect(m_stopDebugConnect); + disconnect(m_finishDebugConnect); disconnect(m_targetConnect); m_fakeFutureInterface = nullptr; m_runMode = TestRunMode::None; diff --git a/src/plugins/autotest/testrunner.h b/src/plugins/autotest/testrunner.h index 48d9f2ecab9..4dfb744a256 100644 --- a/src/plugins/autotest/testrunner.h +++ b/src/plugins/autotest/testrunner.h @@ -108,6 +108,7 @@ private: QMetaObject::Connection m_buildConnect; // temporarily used when debugging QMetaObject::Connection m_stopDebugConnect; + QMetaObject::Connection m_finishDebugConnect; // temporarily used for handling of switching the current target QMetaObject::Connection m_targetConnect; }; diff --git a/src/plugins/coreplugin/outputwindow.cpp b/src/plugins/coreplugin/outputwindow.cpp index 7c3f2f6e132..0c42fb77c7d 100644 --- a/src/plugins/coreplugin/outputwindow.cpp +++ b/src/plugins/coreplugin/outputwindow.cpp @@ -33,6 +33,7 @@ #include #include +#include #include #include #include @@ -58,7 +59,7 @@ public: } IContext *outputWindowContext = nullptr; - Utils::OutputFormatter *formatter = nullptr; + QPointer formatter; QString settingsKey; bool enforceNewline = false; diff --git a/tests/system/suite_general/tst_rename_file/test.py b/tests/system/suite_general/tst_rename_file/test.py index f2ac949549a..a5568f85b54 100644 --- a/tests/system/suite_general/tst_rename_file/test.py +++ b/tests/system/suite_general/tst_rename_file/test.py @@ -53,8 +53,8 @@ def main(): ["Resources", "adding.qrc"], ["QML", "example.qml"]]: filenames = ["ABCD" + filename.upper(), "abcd" + filename.lower(), "test", "TEST", filename] - if (filename.endswith(".qrc") and JIRA.isBugStillOpen(20101)): - filenames.remove("ABCD" + filename.upper()) + if filename.endswith(".qrc"): + filenames = ["ABCD" + filename.lower(), "abcd" + filename.lower(), filename] previous = filenames[-1] for filename in filenames: tempFiletype = filetype