2020-09-03 15:53:41 +02:00
|
|
|
#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
|
2020-11-20 02:38:08 +01:00
|
|
|
SearchRole2, // Secondary string completer uses for search
|
2020-09-03 15:53:41 +02:00
|
|
|
};
|
|
|
|
}
|