EditDelegate Class Reference

#include <EditedDelegate.h>

Inheritance diagram for EditDelegate:
te::common::Decorator< QStyledItemDelegate >

Public Member Functions

void addEdited (const std::string &lName)
 
void addStashed (const std::string &lName)
 
 EditDelegate (QStyledItemDelegate *decorated, QObject *parent=0)
 
QStyledItemDelegate * findDecorator (QStyledItemDelegate *decorated)
 Returns the Decorator that decorates this item. More...
 
QStyledItemDelegate * getDecorated ()
 Returns the pointer of decorated object.
More...
 
bool isStached (const std::string &lName)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QStyledItemDelegate * removeDecorator (QStyledItemDelegate *decorated)
 Removes The decorator of the decorated. More...
 
void removeEdited (const std::string &lName)
 
void removeStashed (const std::string &lName)
 
 ~EditDelegate ()
 

Protected Attributes

QStyledItemDelegate * m_decorated
 The object decorated. More...
 
bool m_delDecorated
 If true, also delete decorated pointer. More...
 
std::set< std::string > m_edited
 
QIcon m_memory
 
QIcon m_stash
 
std::set< std::string > m_stashed
 

Detailed Description

Definition at line 38 of file EditedDelegate.h.

Constructor & Destructor Documentation

◆ EditDelegate()

EditDelegate::EditDelegate ( QStyledItemDelegate *  decorated,
QObject *  parent = 0 
)

◆ ~EditDelegate()

EditDelegate::~EditDelegate ( )

Member Function Documentation

◆ addEdited()

void EditDelegate::addEdited ( const std::string &  lName)

◆ addStashed()

void EditDelegate::addStashed ( const std::string &  lName)

◆ findDecorator()

QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::findDecorator ( QStyledItemDelegate *  decorated)
inherited

Returns the Decorator that decorates this item.

Parameters
decoratedThe decorated item that we are looking for.
Returns
The Decorator we are looking for or this if there's no decorators or 0 if not found.

Definition at line 86 of file Decorator.h.

◆ getDecorated()

QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::getDecorated
inherited

Returns the pointer of decorated object.

Definition at line 78 of file Decorator.h.

◆ isStached()

bool EditDelegate::isStached ( const std::string &  lName)

◆ paint()

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

◆ removeDecorator()

QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::removeDecorator ( QStyledItemDelegate *  decorated)
inherited

Removes The decorator of the decorated.

Parameters
decoratedThe item that we are searching for the decorator.
Returns
The new item to be used as new Delegate or NULL.

Definition at line 94 of file Decorator.h.

◆ removeEdited()

void EditDelegate::removeEdited ( const std::string &  lName)

◆ removeStashed()

void EditDelegate::removeStashed ( const std::string &  lName)

Member Data Documentation

◆ m_decorated

QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::m_decorated
protectedinherited

The object decorated.

Definition at line 98 of file Decorator.h.

◆ m_delDecorated

bool te::common::Decorator< QStyledItemDelegate >::m_delDecorated
protectedinherited

If true, also delete decorated pointer.

Definition at line 99 of file Decorator.h.

◆ m_edited

std::set<std::string> EditDelegate::m_edited
protected

Definition at line 63 of file EditedDelegate.h.

◆ m_memory

QIcon EditDelegate::m_memory
protected

Definition at line 66 of file EditedDelegate.h.

◆ m_stash

QIcon EditDelegate::m_stash
protected

Definition at line 65 of file EditedDelegate.h.

◆ m_stashed

std::set<std::string> EditDelegate::m_stashed
protected

Definition at line 62 of file EditedDelegate.h.


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