summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qcompleter_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/util/qcompleter_p.h')
-rw-r--r--src/gui/util/qcompleter_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/util/qcompleter_p.h b/src/gui/util/qcompleter_p.h
index 3b939a9..d9a4d6d 100644
--- a/src/gui/util/qcompleter_p.h
+++ b/src/gui/util/qcompleter_p.h
@@ -87,6 +87,7 @@ public:
Qt::CaseSensitivity cs;
int role;
int column;
+ int maxVisibleItems;
QCompleter::ModelSorting sorting;
bool wrap;
@@ -213,7 +214,6 @@ class QCompletionModel : public QAbstractProxyModel
public:
QCompletionModel(QCompleterPrivate *c, QObject *parent);
- ~QCompletionModel() { delete engine; }
void createEngine();
void setFiltered(bool);
@@ -236,7 +236,7 @@ public:
QModelIndex mapFromSource(const QModelIndex& sourceIndex) const;
QCompleterPrivate *c;
- QCompletionEngine *engine;
+ QScopedPointer<QCompletionEngine> engine;
bool showAll;
Q_DECLARE_PRIVATE(QCompletionModel)