QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>

Public Member Functions

 QgsDetailedItemDelegate (QObject *parent=0)
 ~QgsDetailedItemDelegate ()
int horizontalSpacing () const
void paint (QPainter *thePainter, const QStyleOptionViewItem &theOption, const QModelIndex &theIndex) const override
 reimplement for parent class
void setHorizontalSpacing (int theValue)
void setVerticalSpacing (int theValue)
QSize sizeHint (const QStyleOptionViewItem &theOption, const QModelIndex &theIndex) 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
also QgsDetailedItemData

Definition at line 34 of file qgsdetaileditemdelegate.h.

Constructor & Destructor Documentation

QgsDetailedItemDelegate::QgsDetailedItemDelegate ( QObject *  parent = 0)

Definition at line 28 of file qgsdetaileditemdelegate.cpp.

QgsDetailedItemDelegate::~QgsDetailedItemDelegate ( )

Definition at line 40 of file qgsdetaileditemdelegate.cpp.

Member Function Documentation

int QgsDetailedItemDelegate::horizontalSpacing ( ) const

Definition at line 387 of file qgsdetaileditemdelegate.cpp.

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.

void QgsDetailedItemDelegate::setHorizontalSpacing ( int  theValue)

Definition at line 393 of file qgsdetaileditemdelegate.cpp.

void QgsDetailedItemDelegate::setVerticalSpacing ( int  theValue)

Definition at line 381 of file qgsdetaileditemdelegate.cpp.

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

reimplement for parent class

Definition at line 70 of file qgsdetaileditemdelegate.cpp.

int QgsDetailedItemDelegate::verticalSpacing ( ) const

Definition at line 375 of file qgsdetaileditemdelegate.cpp.


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