1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3#ifndef TOPIC_H
4#define TOPIC_H
5
6QT_BEGIN_NAMESPACE
7
8struct Topic
9{
10public:
11 Topic() = default;
12 Topic(QString &t, QString a) : m_topic(t), m_args(std::move(a)) { }
13 ~Topic() = default;
14
15 [[nodiscard]] bool isEmpty() const { return m_topic.isEmpty(); }
16 void clear()
17 {
18 m_topic.clear();
19 m_args.clear();
20 }
21
22 QString m_topic {};
23 QString m_args {};
24};
25typedef QList<Topic> TopicList;
26
27QT_END_NAMESPACE
28
29#endif // TOPIC_H
30

source code of qttools/src/qdoc/qdoc/topic.h