cherish
Signals | Public Member Functions | List of all members
BookmarkDelegate Class Reference

Inherited from QStyledItemDelegate, it defines the look and functionality of BookmarkWidget. More...

#include <ListDelegate.h>

Inheritance diagram for BookmarkDelegate:

Signals

void clickedDelete (const QModelIndex &index)
 
void clickedMove (const QModelIndex &index)
 
void clickedApplyState (const QModelIndex &index)
 

Public Member Functions

 BookmarkDelegate (QObject *parent=0)
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 

Detailed Description

Inherited from QStyledItemDelegate, it defines the look and functionality of BookmarkWidget.

Constructor & Destructor Documentation

§ BookmarkDelegate()

BookmarkDelegate::BookmarkDelegate ( QObject *  parent = 0)

Constructor.

Member Function Documentation

§ clickedApplyState

void BookmarkDelegate::clickedApplyState ( const QModelIndex &  index)
signal

Signal which is emitted whenver the user presses the cog button of the corresponding bookmark.

§ clickedDelete

void BookmarkDelegate::clickedDelete ( const QModelIndex &  index)
signal

Signal which is emitted whenver the user presses delete button for the corresponding bookmark.

§ clickedMove

void BookmarkDelegate::clickedMove ( const QModelIndex &  index)
signal

Signal which is emitted whenver the user presses the move button of the corresponding bookmark.

§ editorEvent()

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

Re-defined method that provides functionality within the widget.

§ paint()

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

Re-defined method that describes how to place elements within the widget.


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