Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_membersheet_p.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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of Qt Designer. This header
10// file may change from version to version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QDESIGNER_MEMBERSHEET_H
16#define QDESIGNER_MEMBERSHEET_H
17
19
20#include <QtDesigner/membersheet.h>
21#include <QtDesigner/default_extensionfactory.h>
22#include <QtCore/qstringlist.h>
23
25
27
28class QDESIGNER_SHARED_EXPORT QDesignerMemberSheet: public QObject, public QDesignerMemberSheetExtension
29{
30 Q_OBJECT
31 Q_INTERFACES(QDesignerMemberSheetExtension)
32
33public:
34 explicit QDesignerMemberSheet(QObject *object, QObject *parent = nullptr);
35 ~QDesignerMemberSheet() override;
36
37 int indexOf(const QString &name) const override;
38
39 int count() const override;
40 QString memberName(int index) const override;
41
42 QString memberGroup(int index) const override;
43 void setMemberGroup(int index, const QString &group) override;
44
45 bool isVisible(int index) const override;
46 void setVisible(int index, bool b) override;
47
48 bool isSignal(int index) const override;
49 bool isSlot(int index) const override;
50
51 bool inheritedFromWidget(int index) const override;
52
53 static bool signalMatchesSlot(const QString &signal, const QString &slot);
54
55 QString declaredInClass(int index) const override;
56
57 QString signature(int index) const override;
58 QList<QByteArray> parameterTypes(int index) const override;
59 QList<QByteArray> parameterNames(int index) const override;
60
61private:
62 QDesignerMemberSheetPrivate *d;
63};
64
66{
67 Q_OBJECT
68 Q_INTERFACES(QAbstractExtensionFactory)
69
70public:
71 QDesignerMemberSheetFactory(QExtensionManager *parent = nullptr);
72
73protected:
74 QObject *createExtension(QObject *object, const QString &iid, QObject *parent) const override;
75};
76
77QT_END_NAMESPACE
78
79#endif // QDESIGNER_MEMBERSHEET_H
virtual bool dynamicPropertiesAllowed() const =0
virtual bool isDynamicProperty(int index) const =0
virtual int addDynamicProperty(const QString &propertyName, const QVariant &value)=0
virtual bool canAddDynamicProperty(const QString &propertyName) const =0
virtual bool removeDynamicProperty(int index)=0
virtual ~QDesignerDynamicPropertySheetExtension()=default
QDesignerPropertySheetFactory(QExtensionManager *parent=nullptr)
static void registerExtension(QExtensionManager *mgr)
friend class QWidget
Definition qpainter.h:421
FormEditorOptionsPage(QDesignerFormEditorInterface *core)
QWidget * createPage(QWidget *parent) override
FormEditor(const QStringList &pluginPaths, QObject *parent=nullptr)
Adds header fake properties to QTreeView and QTableView objects.
ItemViewPropertySheet(QTableView *tableViewObject, QObject *parent=nullptr)
void setProperty(int index, const QVariant &value) override
QVariant property(int index) const override
void setChanged(int index, bool changed) override
QHash< QString, QString > propertyNameMap() const
Returns the mapping of fake property names to real property names.
void setProperty(int index, const QVariant &value) override
static void markChangedStretchProperties(QDesignerFormEditorInterface *core, QLayout *lt, const DomLayout *domLayout)
static void stretchAttributesToDom(QDesignerFormEditorInterface *core, QLayout *lt, DomLayout *domLayout)
void setChanged(int index, bool changed) override
QVariant property(int index) const override
QString propertyGroup(int index) const override
bool isVisible(int index) const override
void setProperty(int index, const QVariant &value) override
void setProperty(int index, const QVariant &value) override
QWidget * widget(int index) const override
void insertWidget(int index, QWidget *widget) override
void addWidget(QWidget *widget) override
static void positionNewMdiChild(const QWidget *area, QWidget *mdiChild)
QWidget * widget(int index) const override
void insertWidget(int index, QWidget *widget) override
void setProperty(int index, const QVariant &value) override
static bool checkProperty(const QString &propertyName)
QVariant property(int index) const override
void addWidget(QWidget *widget) override
QWidget * widget(int index) const override
void insertWidget(int index, QWidget *widget) override
bool isVisible(int index) const override
void setProperty(int index, const QVariant &value) override
QWidget * createPage(QWidget *parent) override
static QString chooseTemplatePath(QDesignerFormEditorInterface *core, QWidget *parent)
#define QT_FORMEDITOR_EXPORT
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QDESIGNER_SHARED_EXPORT