VR-Forces 4.8 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. More...
 
virtual ~DtLineEditDelegate ()
 Virtual DTOR. More...
 

Protected Member Functions

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

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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)