Home · All Classes · alphabetical Classes List · Modules · Functions ·

QxtItemDelegate Class Reference
[Gui]

An extended item delegate. More...

Signals

Public Member Functions

Properties


Detailed Description

An extended item delegate.

QxtItemDelegate provides signals for starting and finishing of editing and an optional decoration for top level indices in a single column QTreeView.

Note:
Set QTreeView::rootIsDecorated to false to avoid multiple branch indicators.

Requires Qt 4.2 or newer.


Constructor & Destructor Documentation

QxtItemDelegate::QxtItemDelegate ( QObject *  parent = 0 ) [explicit]

Constructs a new QxtItemDelegate with parent.


QxtItemDelegate::~QxtItemDelegate ( ) [virtual]

Destructs the item delegate.



Member Function Documentation

QxtItemDelegate::editingStarted ( const QModelIndex &  index ) [signal]

This signal is emitted immediately after the editing of index has been started.

See also:
editingFinished()


QxtItemDelegate::editingFinished ( const QModelIndex &  index ) [signal]

This signal is emitted immediately after the editing of index has been finished.

See also:
editingStarted()



Property Documentation

Qxt::DecorationStyle QxtItemDelegate::decorationStyle [read, write]

This property holds the top level index decoration style.

Top level indices are decorated according to this property. The default value is Qxt::NoDecoration.

Note:
The property has effect only in case the delegate is installed on a single column QTreeView. The view must be the parent of the delegate.
See also:
Qxt::DecorationStyle


Qt::TextElideMode QxtItemDelegate::elideMode [read, write]

This property holds the text elide mode.

The text of a decorated top level index is elided according to this property. The default value is Qt::ElideMiddle.

Note:
The property has effect only for decorated top level indices.
See also:
decorationStyle



(c) 2007A.Picciani and A.Higerd LGPL
libqxt 0.2