QDesignerWidgetDataBaseItemInterface Class
The QDesignerWidgetDataBaseItemInterface class provides an interface that is used to access individual items in Qt Designer's widget database. \inmodule
QtDesigner \internal
. More...
Header: | #include <QDesignerWidgetDataBaseItemInterface> |
Public Functions
virtual | ~QDesignerWidgetDataBaseItemInterface() |
virtual QList<QVariant> | defaultPropertyValues() const = 0 |
virtual QString | extends() const = 0 |
virtual QString | group() const = 0 |
virtual QIcon | icon() const = 0 |
virtual QString | includeFile() const = 0 |
virtual bool | isCompat() const = 0 |
virtual bool | isContainer() const = 0 |
virtual bool | isCustom() const = 0 |
virtual bool | isPromoted() const = 0 |
virtual QString | name() const = 0 |
virtual QString | pluginPath() const = 0 |
virtual void | setCompat(bool compat) = 0 |
virtual void | setContainer(bool container) = 0 |
virtual void | setCustom(bool custom) = 0 |
virtual void | setDefaultPropertyValues(const QList<QVariant> &list) = 0 |
virtual void | setExtends(const QString &s) = 0 |
virtual void | setGroup(const QString &group) = 0 |
virtual void | setIcon(const QIcon &icon) = 0 |
virtual void | setIncludeFile(const QString &includeFile) = 0 |
virtual void | setName(const QString &name) = 0 |
virtual void | setPluginPath(const QString &path) = 0 |
virtual void | setPromoted(bool promoted) = 0 |
virtual void | setToolTip(const QString &toolTip) = 0 |
virtual void | setWhatsThis(const QString &whatsThis) = 0 |
virtual QString | toolTip() const = 0 |
virtual QString | whatsThis() const = 0 |
Detailed Description
This class enables individual items in the widget database to be accessed and modified. Changes to the widget database itself are made through the QDesignerWidgetDataBaseInterface class.
Member Function Documentation
[virtual constexpr noexcept]
QDesignerWidgetDataBaseItemInterface::~QDesignerWidgetDataBaseItemInterface()
Destroys the interface.
[pure virtual]
QList<QVariant> QDesignerWidgetDataBaseItemInterface::defaultPropertyValues() const
Returns a list of default values to be used as properties for the item.
See also setDefaultPropertyValues().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::extends() const
Returns the name of the widget that the item extends.
See also setExtends().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::group() const
Returns the name of the group that the widget belongs to.
See also setGroup().
[pure virtual]
QIcon QDesignerWidgetDataBaseItemInterface::icon() const
Returns the icon used to represent the item.
See also setIcon().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::includeFile() const
Returns the name of the include file that the widget needs when being built from source.
See also setIncludeFile().
[pure virtual]
bool QDesignerWidgetDataBaseItemInterface::isCompat() const
Returns true if this type of widget is provided for compatibility purposes (e.g. Qt3Support widgets); otherwise returns false.
See also setCompat().
[pure virtual]
bool QDesignerWidgetDataBaseItemInterface::isContainer() const
Returns true if this widget is intended to be used to hold other widgets; otherwise returns false.
See also setContainer().
[pure virtual]
bool QDesignerWidgetDataBaseItemInterface::isCustom() const
Returns true if the widget is a custom widget; otherwise return false if it is a standard Qt widget.
See also setCustom().
[pure virtual]
bool QDesignerWidgetDataBaseItemInterface::isPromoted() const
Returns true if the widget is promoted; otherwise returns false.
Promoted widgets are those that represent custom widgets, but which are represented in Qt Designer by either standard Qt widgets or readily-available custom widgets.
See also setPromoted().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::name() const
Returns the name of the widget.
See also setName().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::pluginPath() const
Returns the path to use for the widget plugin.
See also setPluginPath().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setCompat(bool compat)
If compat is true, the widget is handled as a compatibility widget; otherwise it is handled normally by Qt Designer.
See also isCompat().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setContainer(bool container)
If container is true, the widget can be used to hold other widgets in Qt Designer; otherwise Qt Designer will refuse to let the user place other widgets inside it.
See also isContainer().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setCustom(bool custom)
If custom is true, the widget is handled specially by Qt Designer; otherwise it is handled as a standard Qt widget.
See also isCustom().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setDefaultPropertyValues(const QList<QVariant> &list)
Sets the default property values for the widget to the given list.
See also defaultPropertyValues().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setExtends(const QString &s)
See also extends().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setGroup(const QString &group)
See also group().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setIcon(const QIcon &icon)
See also icon().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setIncludeFile(const QString &includeFile)
See also includeFile().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setName(const QString &name)
See also name().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setPluginPath(const QString &path)
See also pluginPath().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setPromoted(bool promoted)
If promoted is true, the widget is handled as a promoted widget by Qt Designer and will use a placeholder widget to represent it; otherwise it is handled as a standard widget.
See also isPromoted().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setToolTip(const QString &toolTip)
See also toolTip().
[pure virtual]
void QDesignerWidgetDataBaseItemInterface::setWhatsThis(const QString &whatsThis)
See also whatsThis().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::toolTip() const
Returns the tool tip to be used by the widget.
See also setToolTip().
[pure virtual]
QString QDesignerWidgetDataBaseItemInterface::whatsThis() const
Returns the "What's This?" help for the widget.
See also setWhatsThis().