VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrv::DtLineEditDelegate Class Reference

A custom delegate for inserting a DtLineEdit editor in a Qt item view (e.g. More...

Inheritance diagram for makVrv::DtLineEditDelegate:
Inheritance graph
[legend]

Public Member Functions

 DtLineEditDelegate (QObject *parent=0)
 Default CTOR Construct a line edit delegate to display a DtLineEdit widget.
virtual ~DtLineEditDelegate ()
 Virtual DTOR.

Protected Member Functions

virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Create the editor for this delegate.

Detailed Description

A custom delegate for inserting a DtLineEdit editor in a Qt item view (e.g.

a QTableView or QTreeView) for editing items of the view.

Note
Do not share instances of delegates between widgets.

Constructor & Destructor Documentation

makVrv::DtLineEditDelegate::DtLineEditDelegate ( QObject parent = 0)

Default CTOR Construct a line edit delegate to display a DtLineEdit widget.

Parameters
[in]parentis a parent object for this object.
virtual makVrv::DtLineEditDelegate::~DtLineEditDelegate ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual QWidget* makVrv::DtLineEditDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
protectedvirtual

Create the editor for this delegate.

Reimplemented from QStyledItemDelegate::createEditor().

Parameters
[in]parentis the parent widget for this delegate.
[in]optionis the display options (not used).
[in]indexis the model index to the view (not used).
Returns
The editor for editing the data (a DtLineEdit).
Note
Automatically called. Do not directly call this function.

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)