Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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#include <QtCore/qmetaobject.h>
11
13
14class Driver;
15class DomScript;
16
18{
19public:
21
22 void acceptUI(DomUI *node) override;
23
24 void acceptCustomWidgets(DomCustomWidgets *node) override;
25 void acceptCustomWidget(DomCustomWidget *node) override;
26
28 { return m_customWidgets.value(name); }
29
32
34
35 bool extends(const QString &className, QAnyStringView baseClassName) const;
36 bool extendsOneOf(const QString &className, const QStringList &baseClassNames) const;
37
38 bool isCustomWidgetContainer(const QString &className) const;
39
41 const QString &signalSignature) const;
43 const QString &slotSignature) const;
44
45private:
46 using NameCustomWidgetMap = QMap<QString, DomCustomWidget*>;
47 NameCustomWidgetMap m_customWidgets;
48 bool isAmbiguous(const QString &className, const QString &signature,
50};
51
53
54#endif // CUSTOMWIDGETSINFO_H
bool isCustomWidgetContainer(const QString &className) const
bool isAmbiguousSlot(const QString &className, const QString &slotSignature) 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
T value(const Key &key, const T &defaultValue=T()) const
Definition qmap.h:357
MethodType
\value Method The function is a plain member function.
Definition qmetaobject.h:38
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLenum type
GLuint name
const char className[16]
[1]
Definition qwizard.cpp:100