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
QgsColorSwatchDelegate Class Reference

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

#include <qgscolorschemelist.h>

Public Member Functions

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

Detailed Description

A delegate for showing a color swatch in a list.

See Also
QgsColorSchemeList
Note
introduced in QGIS 2.5

Definition at line 32 of file qgscolorschemelist.h.

Constructor & Destructor Documentation

QgsColorSwatchDelegate::QgsColorSwatchDelegate ( QWidget *  parent = 0)

Definition at line 617 of file qgscolorschemelist.cpp.

Member Function Documentation

bool QgsColorSwatchDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)
override

Definition at line 687 of file qgscolorschemelist.cpp.

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

Definition at line 624 of file qgscolorschemelist.cpp.

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

Definition at line 680 of file qgscolorschemelist.cpp.


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