diff options
Diffstat (limited to 'src/templates/qquickcombobox.cpp')
-rw-r--r-- | src/templates/qquickcombobox.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/templates/qquickcombobox.cpp b/src/templates/qquickcombobox.cpp index 9bf1c4e6..3283a46e 100644 --- a/src/templates/qquickcombobox.cpp +++ b/src/templates/qquickcombobox.cpp @@ -98,6 +98,8 @@ QT_BEGIN_NAMESPACE \l textRole is not defined, ComboBox is unable to visualize it and throws a \c {ReferenceError: modelData is not defined}. + \labs + \sa {Customizing ComboBox}, {Input Controls} */ @@ -330,6 +332,13 @@ QQuickComboBox::QQuickComboBox(QQuickItem *parent) : setAcceptedMouseButtons(Qt::LeftButton); } +QQuickComboBox::~QQuickComboBox() +{ + Q_D(QQuickComboBox); + delete d->popup; + d->popup = nullptr; +} + /*! \readonly \qmlproperty int Qt.labs.controls::ComboBox::count |