MNE-CPP  beta 1.0
Public Types | Public Member Functions | List of all members
DISP3DLIB::ClustStcTableDelegate Class Reference

Delegate for QTableView. More...

#include <cluststctabledelegate.h>

Inheritance diagram for DISP3DLIB::ClustStcTableDelegate:

Public Types

typedef QSharedPointer< ClustStcTableDelegateSPtr
 
typedef QSharedPointer< const ClustStcTableDelegateConstSPtr
 

Public Member Functions

 ClustStcTableDelegate (QObject *parent=0)
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 

Detailed Description

Delegate for QTableView.

Delegate to view stc model data in a table view

Definition at line 70 of file cluststctabledelegate.h.

Member Typedef Documentation

Const shared pointer type for ClustStcTableDelegate class.

Definition at line 75 of file cluststctabledelegate.h.

Shared pointer type for ClustStcTableDelegate class.

Definition at line 74 of file cluststctabledelegate.h.

Member Function Documentation

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

Use the painter and style option to render the item specified by the item index.

(sizeHint() must be implemented also)

Parameters
[in]painterLow-level painting on widgets and other paint devices
[in]optionDescribes the parameters used to draw an item in a view widget
[in]indexUsed to locate data in a data model.

Definition at line 76 of file cluststctabledelegate.cpp.

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

Item size

Parameters
[in]optionDescribes the parameters used to draw an item in a view widget
[in]indexUsed to locate data in a data model.

Definition at line 148 of file cluststctabledelegate.cpp.


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