QGIS API Documentation 3.39.0-Master (132cbd6f1b5)
|
This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom views. More...
#include <qgsdetaileditemdata.h>
Public Member Functions | |
QgsDetailedItemData ()=default | |
QString | category () const |
Returns the item's category. | |
QString | detail () const |
Returns the detailed description for the item. | |
QPixmap | icon () const |
Returns the item's icon. | |
bool | isCheckable () const |
Returns true if the item is checkable. | |
bool | isChecked () const |
Returns true if the item is checked. | |
bool | isEnabled () const |
Returns true if the item is enabled. | |
bool | isRenderedAsWidget () const |
Returns true if the item will be rendered using a widget. | |
void | setCategory (const QString &category) |
Sets the item's category. | |
void | setCheckable (bool flag) |
Sets whether the item is checkable. | |
void | setChecked (bool flag) |
Sets whether the item is checked. | |
void | setDetail (const QString &detail) |
Sets the detailed description for the item. | |
void | setEnabled (bool flag) |
Sets whether the item is enabled. | |
void | setIcon (const QPixmap &icon) |
Sets the item's icon. | |
void | setRenderAsWidget (bool flag) |
This is a hint to the delegate to render using a widget rather than manually painting every part of the list item. | |
void | setTitle (const QString &title) |
Sets the title for the item. | |
QString | title () const |
Returns the item's title. | |
This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom views.
Definition at line 31 of file qgsdetaileditemdata.h.
|
default |
QString QgsDetailedItemData::category | ( | ) | const |
Returns the item's category.
Definition at line 65 of file qgsdetaileditemdata.cpp.
QString QgsDetailedItemData::detail | ( | ) | const |
Returns the detailed description for the item.
Definition at line 60 of file qgsdetaileditemdata.cpp.
QPixmap QgsDetailedItemData::icon | ( | ) | const |
bool QgsDetailedItemData::isCheckable | ( | ) | const |
Returns true
if the item is checkable.
Definition at line 75 of file qgsdetaileditemdata.cpp.
bool QgsDetailedItemData::isChecked | ( | ) | const |
Returns true
if the item is checked.
Definition at line 80 of file qgsdetaileditemdata.cpp.
bool QgsDetailedItemData::isEnabled | ( | ) | const |
Returns true
if the item is enabled.
Definition at line 95 of file qgsdetaileditemdata.cpp.
bool QgsDetailedItemData::isRenderedAsWidget | ( | ) | const |
Returns true
if the item will be rendered using a widget.
Definition at line 85 of file qgsdetaileditemdata.cpp.
void QgsDetailedItemData::setCategory | ( | const QString & | category | ) |
void QgsDetailedItemData::setCheckable | ( | bool | flag | ) |
Sets whether the item is checkable.
Definition at line 40 of file qgsdetaileditemdata.cpp.
void QgsDetailedItemData::setChecked | ( | bool | flag | ) |
Sets whether the item is checked.
Definition at line 45 of file qgsdetaileditemdata.cpp.
void QgsDetailedItemData::setDetail | ( | const QString & | detail | ) |
Sets the detailed description for the item.
Definition at line 25 of file qgsdetaileditemdata.cpp.
void QgsDetailedItemData::setEnabled | ( | bool | flag | ) |
Sets whether the item is enabled.
Definition at line 90 of file qgsdetaileditemdata.cpp.
void QgsDetailedItemData::setIcon | ( | const QPixmap & | icon | ) |
void QgsDetailedItemData::setRenderAsWidget | ( | bool | flag | ) |
This is a hint to the delegate to render using a widget rather than manually painting every part of the list item.
Definition at line 50 of file qgsdetaileditemdata.cpp.
void QgsDetailedItemData::setTitle | ( | const QString & | title | ) |
QString QgsDetailedItemData::title | ( | ) | const |