QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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>

Inheritance diagram for QgsDetailedItemDelegate:
Inheritance graph
[legend]

Public Member Functions

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

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

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: