blob: 3744fbc4f8707d31e08981e865bdd1107f3c4356 (
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
32
33
34
|
// Copyright (C) 2016 Dmitry Savchenko
// Copyright (C) 2016 Vasiliy Sorokin
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "todoicons.h"
#include <QColor>
#include <QString>
#include <QList>
#include <QMetaType>
namespace Todo {
namespace Internal {
class Keyword
{
public:
Keyword();
QString name;
IconType iconType = IconType::Info;
QColor color;
bool equals(const Keyword &other) const;
};
using KeywordList = QList<Keyword>;
bool operator ==(const Keyword &k1, const Keyword &k2);
bool operator !=(const Keyword &k1, const Keyword &k2);
} // namespace Internal
} // namespace Todo
|