VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Signals | Public Member Functions | List of all members
VICI::ItemDelegate Class Reference

An item delegate that uses QLineEdit for editing list and table entries. More...

#include <vici/libgui.h>

Inheritance diagram for VICI::ItemDelegate:

Signals

void validationError (const QModelIndex &) const
 This signal can be emitted if there is a validation error.
 

Public Member Functions

 ItemDelegate (QObject *parent=0)
 Constructor.
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Create a QLineEdit for editing the item.
 
void setEditorData (QWidget *editor, const QModelIndex &index) const
 Copy the data from the model to the editor.
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 Copy the data from the editor to the model.
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Notification that the shape of the owner has changed.
 
bool hasEditor () const
 Check if delegate is in edit mode.
 

Detailed Description

An item delegate that uses QLineEdit for editing list and table entries.

The QListWidget and QTableWidget have faulty editing capability. This item can replace the default one to provide a much nicer user experience when editing the items in lists and tables.


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