StarDelegate.h
Go to the documentation of this file.
1 #ifndef __TERRALIB_EXAMPLE_STARDELEGATE_H
2 #define __TERRALIB_EXAMPLE_STARDELEGATE_H
3 
4 //! TerraLib include files
6 #include <terralib/qt/widgets/dataview/HLDelegateDecorator.h>
7 
8 //! Qt include files
9 #include <QImage>
10 
12 {
13 
14 public:
15  StarDelegate(const size_t nClass = 0);
16 
18 
19  void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
20 
21  void setHighlightColor(const QColor & value);
22 
23 protected:
24 
25  void init();
26 
27  mutable QImage m_img;
28 };
29 
30 #endif //__TERRALIB_EXAMPLE_STARDELEGATE_H
Defines a decorator abstraction.
An specialization of QItemDelegate to be used with te::map::AbstractTable objects.
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
TerraLib include files.
Definition: StarDelegate.h:11
QImage m_img
Definition: StarDelegate.h:27
StarDelegate(const size_t nClass=0)
void setHighlightColor(const QColor &value)