QGIS API Documentation  2.99.0-Master (25b0421)
Public Member Functions | List of all members
QgsDetailedItemData Class Reference

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
 Constructor for QgsDetailedItemData. More...
 
QString category () const
 
QString detail () const
 
QPixmap icon () const
 
bool isCheckable () const
 
bool isChecked () const
 
bool isEnabled () const
 
bool isRenderedAsWidget () const
 
void setCategory (const QString &category)
 
void setCheckable (const bool flag)
 
void setChecked (const bool flag)
 
void setDetail (const QString &detail)
 
void setEnabled (bool flag)
 
void setIcon (const QPixmap &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. More...
 
void setTitle (const QString &title)
 
QString title () const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QgsDetailedItemData()

QgsDetailedItemData::QgsDetailedItemData ( )
default

Constructor for QgsDetailedItemData.

Member Function Documentation

◆ category()

QString QgsDetailedItemData::category ( ) const

Definition at line 65 of file qgsdetaileditemdata.cpp.

◆ detail()

QString QgsDetailedItemData::detail ( ) const

Definition at line 60 of file qgsdetaileditemdata.cpp.

◆ icon()

QPixmap QgsDetailedItemData::icon ( ) const

Definition at line 70 of file qgsdetaileditemdata.cpp.

◆ isCheckable()

bool QgsDetailedItemData::isCheckable ( ) const

Definition at line 75 of file qgsdetaileditemdata.cpp.

◆ isChecked()

bool QgsDetailedItemData::isChecked ( ) const

Definition at line 80 of file qgsdetaileditemdata.cpp.

◆ isEnabled()

bool QgsDetailedItemData::isEnabled ( ) const

Definition at line 95 of file qgsdetaileditemdata.cpp.

◆ isRenderedAsWidget()

bool QgsDetailedItemData::isRenderedAsWidget ( ) const

Definition at line 85 of file qgsdetaileditemdata.cpp.

◆ setCategory()

void QgsDetailedItemData::setCategory ( const QString &  category)

Definition at line 30 of file qgsdetaileditemdata.cpp.

◆ setCheckable()

void QgsDetailedItemData::setCheckable ( const bool  flag)

Definition at line 40 of file qgsdetaileditemdata.cpp.

◆ setChecked()

void QgsDetailedItemData::setChecked ( const bool  flag)

Definition at line 45 of file qgsdetaileditemdata.cpp.

◆ setDetail()

void QgsDetailedItemData::setDetail ( const QString &  detail)

Definition at line 25 of file qgsdetaileditemdata.cpp.

◆ setEnabled()

void QgsDetailedItemData::setEnabled ( bool  flag)

Definition at line 90 of file qgsdetaileditemdata.cpp.

◆ setIcon()

void QgsDetailedItemData::setIcon ( const QPixmap &  icon)

Definition at line 35 of file qgsdetaileditemdata.cpp.

◆ setRenderAsWidget()

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.

Note
the delegate may completely ignore this depending on the delegate implementation.

Definition at line 50 of file qgsdetaileditemdata.cpp.

◆ setTitle()

void QgsDetailedItemData::setTitle ( const QString &  title)

Definition at line 20 of file qgsdetaileditemdata.cpp.

◆ title()

QString QgsDetailedItemData::title ( ) const

Definition at line 55 of file qgsdetaileditemdata.cpp.


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