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// Qt-Security score:significant reason:default
4
5#ifndef ABSTRACTPROPERTYEDITOR_H
6#define ABSTRACTPROPERTYEDITOR_H
7
8#include <QtDesigner/sdk_global.h>
9
10#include <QtWidgets/qwidget.h>
11
12QT_BEGIN_NAMESPACE
13
14class QDesignerFormEditorInterface;
15class QString;
16class QVariant;
17
18class QDESIGNER_SDK_EXPORT QDesignerPropertyEditorInterface: public QWidget
19{
20 Q_OBJECT
21public:
22 explicit QDesignerPropertyEditorInterface(QWidget *parent, Qt::WindowFlags flags = {});
23 ~QDesignerPropertyEditorInterface() override;
24
25 virtual QDesignerFormEditorInterface *core() const;
26
27 virtual bool isReadOnly() const = 0;
28 virtual QObject *object() const = 0;
29
30 virtual QString currentPropertyName() const = 0;
31
32Q_SIGNALS:
33 void propertyChanged(const QString &name, const QVariant &value);
34
35public Q_SLOTS:
36 virtual void setObject(QObject *object) = 0;
37 virtual void setPropertyValue(const QString &name, const QVariant &value, bool changed = true) = 0;
38 virtual void setReadOnly(bool readOnly) = 0;
39};
40
41QT_END_NAMESPACE
42
43#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:432
static void restoreState(QtGradientManager *manager, const QString &state)
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)
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::SelectionMode))