diff options
Diffstat (limited to 'src/quicktemplates2/qquickbuttongroup.cpp')
-rw-r--r-- | src/quicktemplates2/qquickbuttongroup.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/quicktemplates2/qquickbuttongroup.cpp b/src/quicktemplates2/qquickbuttongroup.cpp index ef35440f..2a1e354c 100644 --- a/src/quicktemplates2/qquickbuttongroup.cpp +++ b/src/quicktemplates2/qquickbuttongroup.cpp @@ -154,11 +154,7 @@ class QQuickButtonGroupPrivate : public QObjectPrivate Q_DECLARE_PUBLIC(QQuickButtonGroup) public: - QQuickButtonGroupPrivate() - : exclusive(true), - checkedButton(nullptr) - { - } + QQuickButtonGroupPrivate() : exclusive(true) { } void clear(); void buttonClicked(); @@ -170,7 +166,7 @@ public: static void buttons_clear(QQmlListProperty<QQuickAbstractButton> *prop); bool exclusive; - QQuickAbstractButton *checkedButton; + QPointer<QQuickAbstractButton> checkedButton; QVector<QQuickAbstractButton*> buttons; }; |