Add Q_ENUM for QCompleter enums

This is necessary in order to use the properties of QCompleter that use
these enums.

Change-Id: I9f7edfc1137f200810b6bc98d27709695f37de5d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
Volker Krause 2019-08-08 14:18:34 +02:00
parent fb703aea69
commit 3d29f2198f
1 changed files with 2 additions and 0 deletions

View File

@ -75,12 +75,14 @@ public:
UnfilteredPopupCompletion,
InlineCompletion
};
Q_ENUM(CompletionMode)
enum ModelSorting {
UnsortedModel = 0,
CaseSensitivelySortedModel,
CaseInsensitivelySortedModel
};
Q_ENUM(ModelSorting)
QCompleter(QObject *parent = nullptr);
QCompleter(QAbstractItemModel *model, QObject *parent = nullptr);