diff --git a/doc/qtcreator/src/qtquick/qtquick-modules-with-plugins.qdoc b/doc/qtcreator/src/qtquick/qtquick-modules-with-plugins.qdoc
index bf8b4581c64..46651d8748a 100644
--- a/doc/qtcreator/src/qtquick/qtquick-modules-with-plugins.qdoc
+++ b/doc/qtcreator/src/qtquick/qtquick-modules-with-plugins.qdoc
@@ -36,22 +36,25 @@
\list 1
\li Create custom components and place all the \c .qml files in a
- directory dedicated to your module. For example:
+ directory dedicated to your module. For example,
\c {imports\asset_imports}.
- \li For Qt Quick UI Prototype projects (.qmlproject), specify the path to
+ \if defined(qtcreator)
+ \li For Qt Quick UI Prototype projects (.qmlproject), specify the path to
the directory that has the module in the .qmlproject file
of the application where you want to use the module
- as a value of the \c importPaths variable. For example
+ as a value of the \c importPaths variable. For example,
\c{importPaths: [ "imports", "asset_imports" ]}.
-
+ \else
+ \li Specify the path to the directory that has the module in the
+ .qmlproject file of the application where you want to use the module
+ as a value of the \c importPaths variable. For example,
+ \c{importPaths: [ "imports", "asset_imports" ]}.
+ \endif
\li Create a \c qmldir file for your module and place it
in the module directory. For more information, see
\l {Module Definition qmldir Files}.
- \li Create a \c qmltypes file, as instructed in
- \l {Generating Type Description Files}.
-
\li Create a directory named \c designer in your module directory.
\li Create a \c .metainfo file for your module and place it in the
@@ -66,23 +69,29 @@
\if defined(qtcreator)
\li Import the module into the project, as instructed in
\l {Importing QML Modules}.
- \endlist
-
- \note If \QC cannot find the new QML module, build the project
- and then go to \uicontrol {Tools} > \uicontrol {QML/JS} >
- \uicontrol {Reset Code Model} to reset the code model.
-
\else
\li Build your module using the same Qt version and compiler as \QDS.
- For more information, see \l {Running QML Modules in Design Mode}.
+
+ Your module and components should now appear in \uicontrol Components.
+ \endif
+
\endlist
- Your module should now appear in \uicontrol Components. Your components
- should appear in a subsection of \uicontrol Components if a valid
- \c .metainfo file is in place.
+ \note If \QC cannot find the new QML module, build the project
+ and then go to \uicontrol {Tools} > \uicontrol {QML/JS} >
+ \uicontrol {Reset Code Model} to reset the code model.
+ \if defined(qtdesignstudio)
+ For more information about how to show the \uicontrol {Tools} menu, see
+ \l{Customizing the Menu}.
\endif
- \section1 Generating Type Description Files
+ \if defined(qtcreator)
+ \section1 Developing with Qt 6.1 or Earlier
+
+ Since Qt 6.2, CMake generates the \c qmltypes and \c qmldir files
+ automatically.
+
+ \section2 Generating Type Description Files
When \l{Defining QML Types from C++}{registering QML types}, make sure that
the QML module has a \c{plugins.qmltypes} file. Ideally, it should be located
@@ -115,6 +124,7 @@
\endcode
The import path affects all the targets built by the CMake project.
+ \endif
\if defined(qtdesignstudio)
\section1 Running QML Modules in Design Mode
diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts
index c78a6933286..063fb704c62 100644
--- a/share/qtcreator/translations/qtcreator_de.ts
+++ b/share/qtcreator/translations/qtcreator_de.ts
@@ -39335,7 +39335,7 @@ Bitte versuchen Sie es erneut.
Expand
- Erweitern
+ AufklappenCtrl+T
diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp
index 20df27bea5b..c4cba4845b8 100644
--- a/src/plugins/coreplugin/manhattanstyle.cpp
+++ b/src/plugins/coreplugin/manhattanstyle.cpp
@@ -22,6 +22,7 @@
#include
#include
#include
+#include
#include
#include
#include
@@ -480,21 +481,36 @@ static void drawPrimitiveTweakedForDarkTheme(QStyle::PrimitiveElement element,
break;
}
case QStyle::PE_FrameGroupBox: {
- // Snippet from QFusionStyle::drawPrimitive - BEGIN
- static const int groupBoxTopMargin = 3;
+ QRect groupBoxFrame = option->rect;
int topMargin = 0;
- auto control = dynamic_cast(widget);
- if (control && !control->isCheckable() && control->title().isEmpty()) {
- // Shrinking the topMargin if Not checkable AND title is empty
- topMargin = groupBoxTopMargin;
- } else {
- const int exclusiveIndicatorHeight = widget ? widget->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorHeight) : 0;
- topMargin = qMax(exclusiveIndicatorHeight,
- option->fontMetrics.height()) + groupBoxTopMargin;
+ if (widget) {
+ // Before Qt 6.6.3, QStyle::subControlRect() returned wrong QRect for SC_GroupBoxFrame
+ static const bool validSCRect = QLibraryInfo::version() >= QVersionNumber(6, 6, 3);
+ if (validSCRect) {
+ QStyleOptionGroupBox opt;
+ opt.initFrom(widget);
+ const QStyle *style = widget->style();
+ groupBoxFrame = style->subControlRect(QStyle::CC_GroupBox, &opt,
+ QStyle::SC_GroupBoxFrame, widget);
+ topMargin = 1; // Tweak to resemble the pre-6.6.3 frame
+ } else {
+ // Snippet from pre-6.6.3 FusionStyle::drawPrimitive - BEGIN
+ static const int groupBoxTopMargin = 3;
+ auto control = dynamic_cast(widget);
+ if (!control->isCheckable() && control->title().isEmpty()) {
+ // Shrinking the topMargin if Not checkable AND title is empty
+ topMargin = groupBoxTopMargin;
+ } else {
+ const int exclusiveIndicatorHeight =
+ widget->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorHeight);
+ topMargin = qMax(exclusiveIndicatorHeight,
+ option->fontMetrics.height()) + groupBoxTopMargin;
+ }
+ // Snippet from pre-6.6.3 QFusionStyle::drawPrimitive - END
+ }
}
- // Snippet from QFusionStyle::drawPrimitive - END
- const QRectF frameRectF = QRectF(option->rect).adjusted(0.5, topMargin + 0.5, -0.5, -0.5);
+ const QRectF frameRectF = QRectF(groupBoxFrame).adjusted(0.5, topMargin + 0.5, -0.5, -0.5);
painter->setPen(framePen);
if (isEnabled)
painter->setOpacity(0.5);
diff --git a/src/plugins/qtsupport/examplesparser.cpp b/src/plugins/qtsupport/examplesparser.cpp
index 678a3a3139d..a335773b3ef 100644
--- a/src/plugins/qtsupport/examplesparser.cpp
+++ b/src/plugins/qtsupport/examplesparser.cpp
@@ -373,9 +373,9 @@ QList>> getCategories(const QList<
// order "known" categories as wanted, others come afterwards
const int defaultIndex = defaultOrder.indexOf(it->first);
const int priority = defaultIndex >= 0 ? defaultIndex : (index + defaultOrderSize);
- const std::optional maxRows = restrictRows
- ? std::make_optional(index == 0 ? 2 : 1)
- : std::nullopt;
+ const std::optional maxRows = restrictRows ? std::make_optional(
+ defaultIndex == 0 ? 2 : 1)
+ : std::nullopt;
categories.append({{it->first, priority, maxRows}, it->second});
++index;
}
diff --git a/src/plugins/texteditor/syntaxhighlighter.h b/src/plugins/texteditor/syntaxhighlighter.h
index f5506374267..39bb084465c 100644
--- a/src/plugins/texteditor/syntaxhighlighter.h
+++ b/src/plugins/texteditor/syntaxhighlighter.h
@@ -8,8 +8,6 @@
#include
#include
-#include
-
#include
#include
diff --git a/tests/system/suite_HELP/tst_HELP02/test.py b/tests/system/suite_HELP/tst_HELP02/test.py
index 9c5104087e0..31a3e7c2de4 100644
--- a/tests/system/suite_HELP/tst_HELP02/test.py
+++ b/tests/system/suite_HELP/tst_HELP02/test.py
@@ -4,11 +4,11 @@
source("../../shared/qtcreator.py")
if platform.system() == 'Darwin':
- keysToType = ''
- expectedKeys = 'Cmd+Opt+A'
+ keysToType = ''
+ expectedKeys = 'Cmd+Opt+V'
else:
- keysToType = ''
- expectedKeys = 'Ctrl+Alt+A'
+ keysToType = ''
+ expectedKeys = 'Ctrl+Alt+V'
# test Qt Creator version information from file and dialog