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
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)
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 

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 
)

Definition at line 687 of file qgscolorschemelist.cpp.

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

Definition at line 624 of file qgscolorschemelist.cpp.

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

Definition at line 680 of file qgscolorschemelist.cpp.


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