An specialization of QItemDelegate to be used with te::map::AbstractTable objects.
More...
#include <HighlightDelegate.h>
An specialization of QItemDelegate to be used with te::map::AbstractTable objects.
This class is used on QAbstractItemView that has a te::qt::widgets::DatSetModel as model to highlight some objects. Each identifier in the set of ids are rendering with a predefined color.
- See also
- QItemDelegate, te::qt::widgets::DataSetTableModel
Definition at line 64 of file HighlightDelegate.h.
te::qt::widgets::HighlightDelegate::HighlightDelegate |
( |
QObject * |
parent = 0 | ) |
|
virtual te::qt::widgets::HighlightDelegate::~HighlightDelegate |
( |
| ) |
|
|
virtual |
QColor te::qt::widgets::HighlightDelegate::getColor |
( |
| ) |
|
Returns the color.
- Returns
- Current color.
Returns the identifiers of the rows highlighted.
- Returns
- The identifiers of the highlighted rows;
virtual void te::qt::widgets::HighlightDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
virtual void te::qt::widgets::HighlightDelegate::setColor |
( |
const QColor & |
c | ) |
|
|
virtual |
Update the color group.
- Parameters
-
virtual void te::qt::widgets::HighlightDelegate::setDataSet |
( |
te::da::DataSet * |
dset | ) |
|
|
virtual |
Sets the current data set being used. This method DOES NOT take the ownership of the dset.
- Parameters
-
dset | The DataSet to be used. |
virtual void te::qt::widgets::HighlightDelegate::setObjectIdSet |
( |
const te::da::ObjectIdSet * |
objs | ) |
|
|
virtual |
Sets the object id set. It WILL NOT TAKE the ownership of the objs.
void te::qt::widgets::HighlightDelegate::setPromoter |
( |
Promoter * |
promoter | ) |
|
Sets the promoter being used.
- Parameters
-
promoter | Pointer of the promoter. |
- Note
- It DOES NOT take the ownership of promoter.
QColor te::qt::widgets::HighlightDelegate::m_color |
|
protected |
std::set<std::string> te::qt::widgets::HighlightDelegate::m_oids |
|
protected |
Promoter* te::qt::widgets::HighlightDelegate::m_promoter |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/widgets/table/HighlightDelegate.h