QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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)
 Constructor for QgsDetailedItemDelegate.
 
 ~QgsDetailedItemDelegate () override
 
int horizontalSpacing () const
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Reimplement for parent class.
 
void setHorizontalSpacing (int value)
 
void setVerticalSpacing (int value)
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Reimplement for parent class.
 
int verticalSpacing () const
 

Detailed Description

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

See also
QgsDetailedItemData

Definition at line 37 of file qgsdetaileditemdelegate.h.

Constructor & Destructor Documentation

◆ QgsDetailedItemDelegate()

QgsDetailedItemDelegate::QgsDetailedItemDelegate ( QObject *  parent = nullptr)

Constructor for QgsDetailedItemDelegate.

Definition at line 30 of file qgsdetaileditemdelegate.cpp.

◆ ~QgsDetailedItemDelegate()

QgsDetailedItemDelegate::~QgsDetailedItemDelegate ( )
override

Definition at line 42 of file qgsdetaileditemdelegate.cpp.

Member Function Documentation

◆ horizontalSpacing()

int QgsDetailedItemDelegate::horizontalSpacing ( ) const

Definition at line 390 of file qgsdetaileditemdelegate.cpp.

◆ paint()

void QgsDetailedItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Reimplement for parent class.

Definition at line 48 of file qgsdetaileditemdelegate.cpp.

◆ setHorizontalSpacing()

void QgsDetailedItemDelegate::setHorizontalSpacing ( int  value)

Definition at line 396 of file qgsdetaileditemdelegate.cpp.

◆ setVerticalSpacing()

void QgsDetailedItemDelegate::setVerticalSpacing ( int  value)

Definition at line 384 of file qgsdetaileditemdelegate.cpp.

◆ sizeHint()

QSize QgsDetailedItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Reimplement for parent class.

Definition at line 71 of file qgsdetaileditemdelegate.cpp.

◆ verticalSpacing()

int QgsDetailedItemDelegate::verticalSpacing ( ) const

Definition at line 378 of file qgsdetaileditemdelegate.cpp.


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