summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Weghorn <[email protected]>2025-11-23 01:04:36 +0100
committerMichael Weghorn <[email protected]>2025-11-24 09:25:21 +0100
commit6a8b1df5b71a145cbf40c834ad532222321cf8d1 (patch)
treeec43f05d8ee33e15a9e6a6c631ab8e75b39ec783
parent5819643e6e3bc51d3c8b0f12d5348e99a919e294 (diff)
QBoxLayout: Fix QWidget::sizePolicy reference in doc
Use two colons instead of just a single one. Otherwise, the generated documention only lets the part before the colon reference the QWidget doc (see the QBoxLayout::insertWidget doc [1] generated without this commit in place) instead of detecting that this is a class method and referencing its documentation. [1] https://doc.qt.io/qt-6/qboxlayout.html#insertWidget Pick-to: 6.10 Change-Id: I6cd978aeae9d3078d2033d0efe70de3574444e2c Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r--src/widgets/kernel/qboxlayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/kernel/qboxlayout.cpp b/src/widgets/kernel/qboxlayout.cpp
index 312297fd603..18367aad1b6 100644
--- a/src/widgets/kernel/qboxlayout.cpp
+++ b/src/widgets/kernel/qboxlayout.cpp
@@ -934,7 +934,7 @@ void QBoxLayout::insertLayout(int index, QLayout *layout, int stretch)
If the stretch factor is 0 and nothing else in the QBoxLayout has
a stretch factor greater than zero, the space is distributed
- according to the QWidget:sizePolicy() of each widget that's
+ according to the QWidget::sizePolicy() of each widget that's
involved.
The alignment is specified by \a alignment. The default alignment
@@ -1008,7 +1008,7 @@ void QBoxLayout::addSpacerItem(QSpacerItem *spacerItem)
If the stretch factor is 0 and nothing else in the QBoxLayout has
a stretch factor greater than zero, the space is distributed
- according to the QWidget:sizePolicy() of each widget that's
+ according to the QWidget::sizePolicy() of each widget that's
involved.
The alignment is specified by \a alignment. The default