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
abstractpropertyeditor.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 ABSTRACTPROPERTYEDITOR_H
5#define ABSTRACTPROPERTYEDITOR_H
6
7#include <QtDesigner/sdk_global.h>
8
9#include <QtWidgets/qwidget.h>
10
11QT_BEGIN_NAMESPACE
12
13class QDesignerFormEditorInterface;
14class QString;
15class QVariant;
16
17class QDESIGNER_SDK_EXPORT QDesignerPropertyEditorInterface: public QWidget
18{
19 Q_OBJECT
20public:
21 explicit QDesignerPropertyEditorInterface(QWidget *parent, Qt::WindowFlags flags = {});
22 virtual ~QDesignerPropertyEditorInterface();
23
24 virtual QDesignerFormEditorInterface *core() const;
25
26 virtual bool isReadOnly() const = 0;
27 virtual QObject *object() const = 0;
28
29 virtual QString currentPropertyName() const = 0;
30
31Q_SIGNALS:
32 void propertyChanged(const QString &name, const QVariant &value);
33
34public Q_SLOTS:
35 virtual void setObject(QObject *object) = 0;
36 virtual void setPropertyValue(const QString &name, const QVariant &value, bool changed = true) = 0;
37 virtual void setReadOnly(bool readOnly) = 0;
38};
39
40QT_END_NAMESPACE
41
42#endif // ABSTRACTPROPERTYEDITOR_H
QDesignerIntegrationInterfacePrivate(QDesignerFormEditorInterface *core)
QDesignerFormEditorInterface * m_core
The QDesignerIntegrationInterface glues together parts of \QD and allows for overwriting functionalit...
The QDesignerIntegration class is \QD's implementation of QDesignerIntegrationInterface.
The QDesignerPropertyEditorInterface class allows you to query and manipulate the current state of Qt...
virtual QString propertyGroup(int index) const =0
virtual int indexOf(const QString &name) const =0
The QDesignerWidgetBoxInterface class allows you to control the contents of \QD's widget box.
friend class QWidget
Definition qpainter.h:421
void getSelection(qdesigner_internal::Selection &s)
static void initializePlugins(QDesignerFormEditorInterface *formEditor)
QDesignerIntegrationInterface::Feature m_features
void setupFormWindow(QDesignerFormWindowInterface *formWindow)
void addDynamicProperty(const QString &name, const QVariant &value)
void updateProperty(const QString &name, const QVariant &value, bool enableSubPropertyHandling)
QDesignerIntegrationInterface::ResourceFileWatcherBehaviour m_resourceFileWatcherBehaviour
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static QString fixHelpClassName(const QString &className)
static QString classForProperty(QDesignerFormEditorInterface *core, QObject *object, const QString &property)