blob: 35838e82d7f72e594719c94ac9f8e9572ed2c51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2016 Dmitry Savchenko
// Copyright (C) 2016 Vasiliy Sorokin
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "todoicons.h"
#include <QColor>
#include <QString>
#include <QList>
namespace Todo::Internal {
class Keyword
{
public:
Keyword();
QString name;
IconType iconType = IconType::Info;
QColor color;
bool equals(const Keyword &other) const;
friend bool operator ==(const Keyword &k1, const Keyword &k2);
friend bool operator !=(const Keyword &k1, const Keyword &k2);
};
using KeywordList = QList<Keyword>;
} // namespace Todo::Internal
|