QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsColorSwatchDelegate Class Reference

A delegate for showing a color swatch in a list. More...

#include <qgscolorschemelist.h>

Inheritance diagram for QgsColorSwatchDelegate:
Inheritance graph
[legend]

Public Member Functions

 QgsColorSwatchDelegate (QWidget *parent=0)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 

Detailed Description

A delegate for showing a color swatch in a list.

See also
QgsColorSchemeList
Note
introduced in QGIS 2.5

Constructor & Destructor Documentation

QgsColorSwatchDelegate::QgsColorSwatchDelegate ( QWidget *  parent = 0)

Member Function Documentation

bool QgsColorSwatchDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)
void QgsColorSwatchDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
QSize QgsColorSwatchDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

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