mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
20 lines
572 B
C++
20 lines
572 B
C++
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
// SPDX-FileCopyrightText: 2022 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
|
|
};
|
|
}
|