QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 ()
 
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 &theCategory)
 
void setCheckable (const bool theFlag)
 
void setChecked (const bool theFlag)
 
void setDetail (const QString &theDetail)
 
void setEnabled (bool theFlag)
 
void setIcon (const QPixmap &theIcon)
 
void setRenderAsWidget (bool theFlag)
 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 &theTitle)
 
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 29 of file qgsdetaileditemdata.h.

Constructor & Destructor Documentation

◆ QgsDetailedItemData()

QgsDetailedItemData::QgsDetailedItemData ( )

Definition at line 19 of file qgsdetaileditemdata.cpp.

Member Function Documentation

◆ category()

QString QgsDetailedItemData::category ( ) const

Definition at line 73 of file qgsdetaileditemdata.cpp.

◆ detail()

QString QgsDetailedItemData::detail ( ) const

Definition at line 68 of file qgsdetaileditemdata.cpp.

◆ icon()

QPixmap QgsDetailedItemData::icon ( ) const

Definition at line 78 of file qgsdetaileditemdata.cpp.

◆ isCheckable()

bool QgsDetailedItemData::isCheckable ( ) const

Definition at line 83 of file qgsdetaileditemdata.cpp.

◆ isChecked()

bool QgsDetailedItemData::isChecked ( ) const

Definition at line 88 of file qgsdetaileditemdata.cpp.

◆ isEnabled()

bool QgsDetailedItemData::isEnabled ( ) const

Definition at line 103 of file qgsdetaileditemdata.cpp.

◆ isRenderedAsWidget()

bool QgsDetailedItemData::isRenderedAsWidget ( ) const

Definition at line 93 of file qgsdetaileditemdata.cpp.

◆ setCategory()

void QgsDetailedItemData::setCategory ( const QString theCategory)

Definition at line 38 of file qgsdetaileditemdata.cpp.

◆ setCheckable()

void QgsDetailedItemData::setCheckable ( const bool  theFlag)

Definition at line 48 of file qgsdetaileditemdata.cpp.

◆ setChecked()

void QgsDetailedItemData::setChecked ( const bool  theFlag)

Definition at line 53 of file qgsdetaileditemdata.cpp.

◆ setDetail()

void QgsDetailedItemData::setDetail ( const QString theDetail)

Definition at line 33 of file qgsdetaileditemdata.cpp.

◆ setEnabled()

void QgsDetailedItemData::setEnabled ( bool  theFlag)

Definition at line 98 of file qgsdetaileditemdata.cpp.

◆ setIcon()

void QgsDetailedItemData::setIcon ( const QPixmap theIcon)

Definition at line 43 of file qgsdetaileditemdata.cpp.

◆ setRenderAsWidget()

void QgsDetailedItemData::setRenderAsWidget ( bool  theFlag)

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 58 of file qgsdetaileditemdata.cpp.

◆ setTitle()

void QgsDetailedItemData::setTitle ( const QString theTitle)

Definition at line 28 of file qgsdetaileditemdata.cpp.

◆ title()

QString QgsDetailedItemData::title ( ) const

Definition at line 63 of file qgsdetaileditemdata.cpp.


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