VR-Forces 5.0.2 Developer's Guide
 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. a QTableView or QTreeView) for editing items of the view.

Note
Do not share instances of delegates between widgets.
Inheritance diagram for makVrv::DtLineEditDelegate:
Inheritance graph
[legend]

Public Member Functions

 DtLineEditDelegate (QObject *parent=0)
 
virtual ~DtLineEditDelegate ()
 

Protected Member Functions

virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 

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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)