summary refs log tree commit diff
path: root/src/CompletionModelRoles.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-11-25 22:01:19 +0100
committerGitHub <noreply@github.com>2020-11-25 22:01:19 +0100
commitc44513614f00512326877f544a55680d18fef41c (patch)
tree6e89ae6e98928beb00a35e815b8fafbd7cd49a61 /src/CompletionModelRoles.h
parentFix ActiveCallBar (diff)
parentMerge pull request #335 from Nheko-Reborn/qml-text-input (diff)
downloadnheko-c44513614f00512326877f544a55680d18fef41c.tar.xz
Merge branch 'master' into fix-call-bar
Diffstat (limited to 'src/CompletionModelRoles.h')
-rw-r--r--src/CompletionModelRoles.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CompletionModelRoles.h b/src/CompletionModelRoles.h
new file mode 100644

index 00000000..7c7307d3 --- /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 + SearchRole2, // Secondary string completer uses for search +}; +}