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_internal::WidgetDataBaseItem Class Reference

#include <widgetdatabase_p.h>

+ Inheritance diagram for qdesigner_internal::WidgetDataBaseItem:
+ Collaboration diagram for qdesigner_internal::WidgetDataBaseItem:

Public Member Functions

 WidgetDataBaseItem (const QString &name=QString(), const QString &group=QString())
 
QString name () const override
 Returns the name of the widget.
 
void setName (const QString &name) override
 
QString group () const override
 Returns the name of the group that the widget belongs to.
 
void setGroup (const QString &group) override
 
QString toolTip () const override
 Returns the tool tip to be used by the widget.
 
void setToolTip (const QString &toolTip) override
 
QString whatsThis () const override
 Returns the "What's This?" help for the widget.
 
void setWhatsThis (const QString &whatsThis) override
 
QString includeFile () const override
 Returns the name of the include file that the widget needs when being built from source.
 
void setIncludeFile (const QString &includeFile) override
 
QIcon icon () const override
 Returns the icon used to represent the item.
 
void setIcon (const QIcon &icon) override
 
bool isCompat () const override
 Returns true if this type of widget is provided for compatibility purposes (e.g.
 
void setCompat (bool compat) override
 If compat is true, the widget is handled as a compatibility widget; otherwise it is handled normally by \QD.
 
bool isContainer () const override
 Returns true if this widget is intended to be used to hold other widgets; otherwise returns false.
 
void setContainer (bool b) override
 If container is true, the widget can be used to hold other widgets in \QD; otherwise \QD will refuse to let the user place other widgets inside it.
 
bool isCustom () const override
 Returns true if the widget is a custom widget; otherwise return false if it is a standard Qt widget.
 
void setCustom (bool b) override
 If custom is true, the widget is handled specially by \QD; otherwise it is handled as a standard Qt widget.
 
QString pluginPath () const override
 Returns the path to use for the widget plugin.
 
void setPluginPath (const QString &path) override
 
bool isPromoted () const override
 Returns true if the widget is promoted; otherwise returns false.
 
void setPromoted (bool b) override
 If promoted is true, the widget is handled as a promoted widget by \QD and will use a placeholder widget to represent it; otherwise it is handled as a standard widget.
 
QString extends () const override
 Returns the name of the widget that the item extends.
 
void setExtends (const QString &s) override
 
void setDefaultPropertyValues (const QList< QVariant > &list) override
 Sets the default property values for the widget to the given list.
 
QList< QVariantdefaultPropertyValues () const override
 Returns a list of default values to be used as properties for the item.
 
QString baseClassName () const
 
void setBaseClassName (const QString &b)
 
QStringList fakeSlots () const
 
void setFakeSlots (const QStringList &)
 
QStringList fakeSignals () const
 
void setFakeSignals (const QStringList &)
 
QString addPageMethod () const
 
void setAddPageMethod (const QString &m)
 
- Public Member Functions inherited from QDesignerWidgetDataBaseItemInterface
 QDesignerWidgetDataBaseItemInterface ()=default
 
virtual ~QDesignerWidgetDataBaseItemInterface ()=default
 Destroys the interface.
 

Static Public Member Functions

static WidgetDataBaseItemclone (const QDesignerWidgetDataBaseItemInterface *item)
 

Detailed Description

Definition at line 36 of file widgetdatabase_p.h.

Constructor & Destructor Documentation

◆ WidgetDataBaseItem()

qdesigner_internal::WidgetDataBaseItem::WidgetDataBaseItem ( const QString & name = QString(),
const QString & group = QString() )
explicit

Definition at line 47 of file widgetdatabase.cpp.

Member Function Documentation

◆ addPageMethod()

QString qdesigner_internal::WidgetDataBaseItem::addPageMethod ( ) const

Definition at line 207 of file widgetdatabase.cpp.

◆ baseClassName()

QString qdesigner_internal::WidgetDataBaseItem::baseClassName ( ) const

Definition at line 236 of file widgetdatabase.cpp.

◆ clone()

WidgetDataBaseItem * qdesigner_internal::WidgetDataBaseItem::clone ( const QDesignerWidgetDataBaseItemInterface * item)
static

Definition at line 217 of file widgetdatabase.cpp.

◆ defaultPropertyValues()

QList< QVariant > qdesigner_internal::WidgetDataBaseItem::defaultPropertyValues ( ) const
overridevirtual

Returns a list of default values to be used as properties for the item.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 182 of file widgetdatabase.cpp.

◆ extends()

QString qdesigner_internal::WidgetDataBaseItem::extends ( ) const
overridevirtual

Returns the name of the widget that the item extends.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 167 of file widgetdatabase.cpp.

◆ fakeSignals()

QStringList qdesigner_internal::WidgetDataBaseItem::fakeSignals ( ) const

Definition at line 197 of file widgetdatabase.cpp.

◆ fakeSlots()

QStringList qdesigner_internal::WidgetDataBaseItem::fakeSlots ( ) const

Definition at line 187 of file widgetdatabase.cpp.

◆ group()

QString qdesigner_internal::WidgetDataBaseItem::group ( ) const
overridevirtual

Returns the name of the group that the widget belongs to.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 67 of file widgetdatabase.cpp.

◆ icon()

QIcon qdesigner_internal::WidgetDataBaseItem::icon ( ) const
overridevirtual

Returns the icon used to represent the item.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 107 of file widgetdatabase.cpp.

◆ includeFile()

QString qdesigner_internal::WidgetDataBaseItem::includeFile ( ) const
overridevirtual

Returns the name of the include file that the widget needs when being built from source.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 97 of file widgetdatabase.cpp.

◆ isCompat()

bool qdesigner_internal::WidgetDataBaseItem::isCompat ( ) const
overridevirtual

Returns true if this type of widget is provided for compatibility purposes (e.g.

Qt3Support widgets); otherwise returns false.

See also
setCompat()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 117 of file widgetdatabase.cpp.

◆ isContainer()

bool qdesigner_internal::WidgetDataBaseItem::isContainer ( ) const
overridevirtual

Returns true if this widget is intended to be used to hold other widgets; otherwise returns false.

See also
setContainer()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 127 of file widgetdatabase.cpp.

◆ isCustom()

bool qdesigner_internal::WidgetDataBaseItem::isCustom ( ) const
overridevirtual

Returns true if the widget is a custom widget; otherwise return false if it is a standard Qt widget.

See also
setCustom()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 137 of file widgetdatabase.cpp.

◆ isPromoted()

bool qdesigner_internal::WidgetDataBaseItem::isPromoted ( ) const
overridevirtual

Returns true if the widget is promoted; otherwise returns false.

Promoted widgets are those that represent custom widgets, but which are represented in \QD by either standard Qt widgets or readily-available custom widgets.

See also
setPromoted()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 157 of file widgetdatabase.cpp.

◆ name()

QString qdesigner_internal::WidgetDataBaseItem::name ( ) const
overridevirtual

Returns the name of the widget.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 57 of file widgetdatabase.cpp.

Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().

+ Here is the caller graph for this function:

◆ pluginPath()

QString qdesigner_internal::WidgetDataBaseItem::pluginPath ( ) const
overridevirtual

Returns the path to use for the widget plugin.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 147 of file widgetdatabase.cpp.

◆ setAddPageMethod()

void qdesigner_internal::WidgetDataBaseItem::setAddPageMethod ( const QString & m)

Definition at line 212 of file widgetdatabase.cpp.

◆ setBaseClassName()

void qdesigner_internal::WidgetDataBaseItem::setBaseClassName ( const QString & b)

Definition at line 241 of file widgetdatabase.cpp.

◆ setCompat()

void qdesigner_internal::WidgetDataBaseItem::setCompat ( bool compat)
overridevirtual

If compat is true, the widget is handled as a compatibility widget; otherwise it is handled normally by \QD.

See also
isCompat()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 122 of file widgetdatabase.cpp.

◆ setContainer()

void qdesigner_internal::WidgetDataBaseItem::setContainer ( bool container)
overridevirtual

If container is true, the widget can be used to hold other widgets in \QD; otherwise \QD will refuse to let the user place other widgets inside it.

See also
isContainer()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 132 of file widgetdatabase.cpp.

◆ setCustom()

void qdesigner_internal::WidgetDataBaseItem::setCustom ( bool custom)
overridevirtual

If custom is true, the widget is handled specially by \QD; otherwise it is handled as a standard Qt widget.

See also
isCustom()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 142 of file widgetdatabase.cpp.

◆ setDefaultPropertyValues()

void qdesigner_internal::WidgetDataBaseItem::setDefaultPropertyValues ( const QList< QVariant > & list)
overridevirtual

Sets the default property values for the widget to the given list.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 177 of file widgetdatabase.cpp.

◆ setExtends()

void qdesigner_internal::WidgetDataBaseItem::setExtends ( const QString & s)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 172 of file widgetdatabase.cpp.

◆ setFakeSignals()

void qdesigner_internal::WidgetDataBaseItem::setFakeSignals ( const QStringList & fs)

Definition at line 202 of file widgetdatabase.cpp.

◆ setFakeSlots()

void qdesigner_internal::WidgetDataBaseItem::setFakeSlots ( const QStringList & fs)

Definition at line 192 of file widgetdatabase.cpp.

◆ setGroup()

void qdesigner_internal::WidgetDataBaseItem::setGroup ( const QString & group)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 72 of file widgetdatabase.cpp.

◆ setIcon()

void qdesigner_internal::WidgetDataBaseItem::setIcon ( const QIcon & icon)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 112 of file widgetdatabase.cpp.

◆ setIncludeFile()

void qdesigner_internal::WidgetDataBaseItem::setIncludeFile ( const QString & includeFile)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 102 of file widgetdatabase.cpp.

◆ setName()

void qdesigner_internal::WidgetDataBaseItem::setName ( const QString & name)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 62 of file widgetdatabase.cpp.

◆ setPluginPath()

void qdesigner_internal::WidgetDataBaseItem::setPluginPath ( const QString & path)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 152 of file widgetdatabase.cpp.

◆ setPromoted()

void qdesigner_internal::WidgetDataBaseItem::setPromoted ( bool promoted)
overridevirtual

If promoted is true, the widget is handled as a promoted widget by \QD and will use a placeholder widget to represent it; otherwise it is handled as a standard widget.

See also
isPromoted()

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 162 of file widgetdatabase.cpp.

◆ setToolTip()

void qdesigner_internal::WidgetDataBaseItem::setToolTip ( const QString & toolTip)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 82 of file widgetdatabase.cpp.

◆ setWhatsThis()

void qdesigner_internal::WidgetDataBaseItem::setWhatsThis ( const QString & whatsThis)
overridevirtual

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 92 of file widgetdatabase.cpp.

◆ toolTip()

QString qdesigner_internal::WidgetDataBaseItem::toolTip ( ) const
overridevirtual

Returns the tool tip to be used by the widget.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 77 of file widgetdatabase.cpp.

◆ whatsThis()

QString qdesigner_internal::WidgetDataBaseItem::whatsThis ( ) const
overridevirtual

Returns the "What's This?" help for the widget.

Implements QDesignerWidgetDataBaseItemInterface.

Definition at line 87 of file widgetdatabase.cpp.


The documentation for this class was generated from the following files: