summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/spacer_widget_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/spacer_widget_p.h')
-rw-r--r--src/designer/src/lib/shared/spacer_widget_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/designer/src/lib/shared/spacer_widget_p.h b/src/designer/src/lib/shared/spacer_widget_p.h
index 8dfccc5b3..cbb9dd6d7 100644
--- a/src/designer/src/lib/shared/spacer_widget_p.h
+++ b/src/designer/src/lib/shared/spacer_widget_p.h
@@ -61,7 +61,7 @@ class QDESIGNER_SHARED_EXPORT Spacer: public QWidget
Q_PROPERTY(QSize sizeHint READ sizeHintProperty WRITE setSizeHintProperty DESIGNABLE true STORED true)
public:
- Spacer(QWidget *parent = 0);
+ Spacer(QWidget *parent = nullptr);
QSize sizeHint() const override;
@@ -88,14 +88,14 @@ private:
bool isInLayout() const;
void updateToolTip();
- const QSize m_SizeOffset;
+ const QSize m_SizeOffset = QSize(3, 3); // A small offset to ensure the spacer is still visible when reset to size 0,0
QDesignerFormWindowInterface *m_formWindow;
- Qt::Orientation m_orientation;
- bool m_interactive;
+ Qt::Orientation m_orientation = Qt::Vertical;
+ bool m_interactive = true;
// Cache information about 'being in layout' which is expensive to calculate.
enum LayoutState { InLayout, OutsideLayout, UnknownLayoutState };
- mutable LayoutState m_layoutState;
- QSize m_sizeHint;
+ mutable LayoutState m_layoutState = UnknownLayoutState;
+ QSize m_sizeHint = QSize(0, 0);
};
QT_END_NAMESPACE