diff options
author | Jussi Kuokkanen <jussi.kuokkanen@protonmail.com> | 2020-09-03 16:53:41 +0300 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-11-25 19:05:12 +0100 |
commit | 00bc87b55017f135efffb2637f2b5d009488c3df (patch) | |
tree | 56ee6ba4df7e8f07e435c16676d3cd140261760c /src/CompletionModelRoles.h | |
parent | 748bf0cd988c103e66919db753d40fe19a784022 (diff) |
add completer interface (item roles)
Diffstat (limited to 'src/CompletionModelRoles.h')
-rw-r--r-- | src/CompletionModelRoles.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CompletionModelRoles.h b/src/CompletionModelRoles.h new file mode 100644 index 00000000..bd6c4114 --- /dev/null +++ b/src/CompletionModelRoles.h @@ -0,0 +1,15 @@ +#pragma once + +#include <QAbstractItemModel> + +// Interface for completion models +namespace CompletionModel { + +// Start at Qt::UserRole * 2 to prevent clashes +enum Roles +{ + CompletionRole = Qt::UserRole * 2, // The string to replace the active completion + SearchRole, // String completer uses for search +}; + +} |