summary refs log tree commit diff
path: root/src/CompletionModelRoles.h
blob: 7fd965995efc099e44521f904a66d5c9b5b4b1ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-FileCopyrightText: 2021 Nheko Contributors
// SPDX-FileCopyrightText: 2022 Nheko Contributors
// SPDX-FileCopyrightText: 2023 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

#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
};
}