Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
customwidgetsinfo.h
Go to the documentation of this file.
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 CUSTOMWIDGETSINFO_H
5#define CUSTOMWIDGETSINFO_H
6
7#include "treewalker.h"
8#include <qstringlist.h>
9#include <qmap.h>
10
12
13class Driver;
14class DomScript;
15
17{
18public:
20
21 void acceptUI(DomUI *node) override;
22
23 void acceptCustomWidgets(DomCustomWidgets *node) override;
24 void acceptCustomWidget(DomCustomWidget *node) override;
25
27 { return m_customWidgets.value(name); }
28
31
33
34 bool extends(const QString &className, QAnyStringView baseClassName) const;
35 bool extendsOneOf(const QString &className, const QStringList &baseClassNames) const;
36
37 bool isCustomWidgetContainer(const QString &className) const;
38
40 const QString &signalSignature) const;
41
42private:
43 using NameCustomWidgetMap = QMap<QString, DomCustomWidget*>;
44 NameCustomWidgetMap m_customWidgets;
45};
46
48
49#endif // CUSTOMWIDGETSINFO_H
bool isCustomWidgetContainer(const QString &className) const
void acceptUI(DomUI *node) override
bool isAmbiguousSignal(const QString &className, const QString &signalSignature) const
bool extendsOneOf(const QString &className, const QStringList &baseClassNames) const
QString realClassName(const QString &className) const
QString customWidgetAddPageMethod(const QString &name) const
bool extends(const QString &className, QAnyStringView baseClassName) const
QString simpleContainerAddPageMethod(const QString &name) const
void acceptCustomWidgets(DomCustomWidgets *node) override
void acceptCustomWidget(DomCustomWidget *node) override
DomCustomWidget * customWidget(const QString &name) const
Definition ui4.h:116
\inmodule QtCore
Definition qmap.h:186
T value(const Key &key, const T &defaultValue=T()) const
Definition qmap.h:356
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
GLuint name
const char className[16]
[1]
Definition qwizard.cpp:100