QGIS API Documentation  2.99.0-Master (8ec3eaf)
Public Member Functions | List of all members
QgsDetailedItemDelegate Class Reference

A custom model/view delegate that can display an icon, heading and detail sections. More...

#include <qgsdetaileditemdelegate.h>

Inheritance diagram for QgsDetailedItemDelegate:
Inheritance graph
[legend]

Public Member Functions

 QgsDetailedItemDelegate (QObject *parent=nullptr)
 
 ~QgsDetailedItemDelegate ()
 
int horizontalSpacing () const
 
void paint (QPainter *thePainter, const QStyleOptionViewItem &theOption, const QModelIndex &theIndex) const override
 Reimplement for parent class. More...
 
void setHorizontalSpacing (int theValue)
 
void setVerticalSpacing (int theValue)
 
QSize sizeHint (const QStyleOptionViewItem &theOption, const QModelIndex &theIndex) const override
 Reimplement for parent class. More...
 
int verticalSpacing () const
 

Detailed Description

A custom model/view delegate that can display an icon, heading and detail sections.

See also
also QgsDetailedItemData

Definition at line 34 of file qgsdetaileditemdelegate.h.

Constructor & Destructor Documentation

§ QgsDetailedItemDelegate()

QgsDetailedItemDelegate::QgsDetailedItemDelegate ( QObject *  parent = nullptr)

Definition at line 28 of file qgsdetaileditemdelegate.cpp.

§ ~QgsDetailedItemDelegate()

QgsDetailedItemDelegate::~QgsDetailedItemDelegate ( )

Definition at line 40 of file qgsdetaileditemdelegate.cpp.

Member Function Documentation

§ horizontalSpacing()

int QgsDetailedItemDelegate::horizontalSpacing ( ) const

Definition at line 389 of file qgsdetaileditemdelegate.cpp.

§ paint()

void QgsDetailedItemDelegate::paint ( QPainter *  thePainter,
const QStyleOptionViewItem &  theOption,
const QModelIndex &  theIndex 
) const
override

Reimplement for parent class.

Definition at line 46 of file qgsdetaileditemdelegate.cpp.

§ setHorizontalSpacing()

void QgsDetailedItemDelegate::setHorizontalSpacing ( int  theValue)

Definition at line 395 of file qgsdetaileditemdelegate.cpp.

§ setVerticalSpacing()

void QgsDetailedItemDelegate::setVerticalSpacing ( int  theValue)

Definition at line 383 of file qgsdetaileditemdelegate.cpp.

§ sizeHint()

QSize QgsDetailedItemDelegate::sizeHint ( const QStyleOptionViewItem &  theOption,
const QModelIndex &  theIndex 
) const
override

Reimplement for parent class.

Definition at line 70 of file qgsdetaileditemdelegate.cpp.

§ verticalSpacing()

int QgsDetailedItemDelegate::verticalSpacing ( ) const

Definition at line 377 of file qgsdetaileditemdelegate.cpp.


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