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

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: