2021-03-05 02:35:15 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
2022-01-01 06:57:53 +03:00
|
|
|
// SPDX-FileCopyrightText: 2022 Nheko Contributors
|
2023-01-02 06:25:33 +03:00
|
|
|
// SPDX-FileCopyrightText: 2023 Nheko Contributors
|
2021-03-05 02:35:15 +03:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-09-03 16:53:41 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QAbstractItemModel>
|
|
|
|
|
|
|
|
// Interface for completion models
|
|
|
|
namespace CompletionModel {
|
|
|
|
|
|
|
|
// Start at Qt::UserRole * 2 to prevent clashes
|
|
|
|
enum Roles
|
|
|
|
{
|
2021-09-18 01:22:33 +03:00
|
|
|
CompletionRole = Qt::UserRole * 2, // The string to replace the active completion
|
|
|
|
SearchRole, // String completer uses for search
|
|
|
|
SearchRole2, // Secondary string completer uses for search
|
2020-09-03 16:53:41 +03:00
|
|
|
};
|
|
|
|
}
|