1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef PYTHONWRITEDECLARATION_H
5#define PYTHONWRITEDECLARATION_H
6
7#include <treewalker.h>
8
9QT_BEGIN_NAMESPACE
10
11class QTextStream;
12class Driver;
13class Uic;
14
15struct Option;
16
17namespace Python {
18
19struct WriteDeclaration : public TreeWalker
20{
21 WriteDeclaration(Uic *uic);
22
23 void acceptUI(DomUI *node) override;
24 void acceptButtonGroup(const DomButtonGroup *buttonGroup) override;
25
26private:
27 Uic *m_uic;
28 Driver *m_driver;
29 QTextStream &m_output;
30 const Option &m_option;
31};
32
33} // namespace Python
34
35QT_END_NAMESPACE
36
37#endif // PYTHONWRITEDECLARATION_H
38

source code of qtbase/src/tools/uic/python/pythonwritedeclaration.h