1// Copyright (C) 2016 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 VALIDATOR_H
5#define VALIDATOR_H
6
7#include "treewalker.h"
8
9QT_BEGIN_NAMESPACE
10
11class QTextStream;
12class Driver;
13class Uic;
14
15struct Option;
16
17struct Validator : public TreeWalker
18{
19 Validator(Uic *uic);
20
21 void acceptUI(DomUI *node) override;
22 void acceptWidget(DomWidget *node) override;
23
24 void acceptLayoutItem(DomLayoutItem *node) override;
25 void acceptLayout(DomLayout *node) override;
26
27 void acceptActionGroup(DomActionGroup *node) override;
28 void acceptAction(DomAction *node) override;
29
30private:
31 Driver *m_driver;
32};
33
34QT_END_NAMESPACE
35
36#endif // VALIDATOR_H
37

source code of qtbase/src/tools/uic/validator.h