4#ifndef ABSTRACTPROPERTYEDITOR_H
5#define ABSTRACTPROPERTYEDITOR_H
7#include <QtDesigner/sdk_global.h>
9#include <QtWidgets/qwidget.h>
13class QDesignerFormEditorInterface;
21 explicit QDesignerPropertyEditorInterface(QWidget *parent, Qt::WindowFlags flags = {});
22 virtual ~QDesignerPropertyEditorInterface();
24 virtual QDesignerFormEditorInterface *core()
const;
26 virtual bool isReadOnly()
const = 0;
27 virtual QObject *object()
const = 0;
29 virtual QString currentPropertyName()
const = 0;
32 void propertyChanged(
const QString &name,
const QVariant &value);
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;
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
void getSelection(qdesigner_internal::Selection &s)
static void initializePlugins(QDesignerFormEditorInterface *formEditor)
QString contextHelpId() const
QDesignerIntegrationInterface::Feature m_features
void setupFormWindow(QDesignerFormWindowInterface *formWindow)
void addDynamicProperty(const QString &name, const QVariant &value)
QDesignerIntegrationPrivate(QDesignerIntegration *qq)
QObject * propertyEditorObject()
void updateCustomWidgetPlugins()
QWidget * containerWindow(QWidget *widget) const
QtGradientManager * m_gradientManager
void updateProperty(const QString &name, const QVariant &value, bool enableSubPropertyHandling)
QDesignerIntegrationInterface::ResourceFileWatcherBehaviour m_resourceFileWatcherBehaviour
void removeDynamicProperty(const QString &name)
void resetProperty(const QString &name)
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)