mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
add completer interface (item roles)
This commit is contained in:
parent
748bf0cd98
commit
00bc87b550
1 changed files with 15 additions and 0 deletions
15
src/CompletionModelRoles.h
Normal file
15
src/CompletionModelRoles.h
Normal file
|
@ -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
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue