Skip to content

Commit 2bcd9e0

Browse files
committed
widgets/wrapper: default resizeChild to true
Better reflects how wrapper types are used 99% of the time.
1 parent 428aec9 commit 2bcd9e0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/widgets/ClippingWrapperRectangle.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ClippingRectangle {
3939
/// Defaults to @@margin, and may be reset by assigning `undefined`.
4040
property /*real*/alias rightMargin: manager.rightMargin
4141
/// Determines if child item should be resized larger than its implicit size if
42-
/// the parent is resized larger than its implicit size. Defaults to false.
42+
/// the parent is resized larger than its implicit size. Defaults to true.
4343
property /*bool*/alias resizeChild: manager.resizeChild
4444
/// Overrides the implicit width of the wrapper.
4545
///

src/widgets/WrapperItem.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Item {
5353
/// Defaults to @@margin, and may be reset by assigning `undefined`.
5454
property /*real*/alias rightMargin: manager.rightMargin
5555
/// Determines if child item should be resized larger than its implicit size if
56-
/// the parent is resized larger than its implicit size. Defaults to false.
56+
/// the parent is resized larger than its implicit size. Defaults to true.
5757
property /*bool*/alias resizeChild: manager.resizeChild
5858
/// Overrides the implicit width of the wrapper.
5959
///

src/widgets/WrapperMouseArea.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ MouseArea {
4141
/// Defaults to @@margin, and may be reset by assigning `undefined`.
4242
property /*real*/alias rightMargin: manager.rightMargin
4343
/// Determines if child item should be resized larger than its implicit size if
44-
/// the parent is resized larger than its implicit size. Defaults to false.
44+
/// the parent is resized larger than its implicit size. Defaults to true.
4545
property /*bool*/alias resizeChild: manager.resizeChild
4646
/// Overrides the implicit width of the wrapper.
4747
///

src/widgets/WrapperRectangle.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Rectangle {
4343
/// Defaults to @@margin, and may be reset by assigning `undefined`.
4444
property /*real*/alias rightMargin: manager.rightMargin
4545
/// Determines if child item should be resized larger than its implicit size if
46-
/// the parent is resized larger than its implicit size. Defaults to false.
46+
/// the parent is resized larger than its implicit size. Defaults to true.
4747
property /*bool*/alias resizeChild: manager.resizeChild
4848
/// Overrides the implicit width of the wrapper.
4949
///

src/widgets/marginwrapper.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MarginWrapperManager: public WrapperManager {
6868
/// Defaults to @@margin, and may be reset by assigning `undefined`.
6969
Q_PROPERTY(qreal rightMargin READ rightMargin WRITE setRightMargin RESET resetRightMargin NOTIFY rightMarginChanged FINAL);
7070
/// Determines if child item should be resized larger than its implicit size if
71-
/// the parent is resized larger than its implicit size. Defaults to false.
71+
/// the parent is resized larger than its implicit size. Defaults to true.
7272
Q_PROPERTY(bool resizeChild READ default WRITE default BINDABLE bindableResizeChild NOTIFY resizeChildChanged FINAL);
7373
/// Overrides the implicit width of the wrapper.
7474
///
@@ -170,7 +170,7 @@ private slots:
170170

171171
private:
172172
// clang-format off
173-
Q_OBJECT_BINDABLE_PROPERTY(MarginWrapperManager, bool, bResizeChild);
173+
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(MarginWrapperManager, bool, bResizeChild, true);
174174
Q_OBJECT_BINDABLE_PROPERTY(MarginWrapperManager, qreal, bMargin, &MarginWrapperManager::marginChanged);
175175
Q_OBJECT_BINDABLE_PROPERTY(MarginWrapperManager, qreal, bExtraMargin, &MarginWrapperManager::baseMarginChanged);
176176

0 commit comments

Comments
 (0)