All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
A delegate for QLineEdit which initializes with model data. More...
#include <LineEditDelegate.h>
Public Member Functions | |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| LineEditDelegate (QObject *parent=0) | |
| virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
A delegate for QLineEdit which initializes with model data.
Default implementation provided by Qt in QItemDelegate is not convenient for the user: the data provided by model is not displayed in QLineEdit. This delegate fix this issue. All delegates based on QLineEdit can potentially inherit this class.
| QGpGuiTools::LineEditDelegate::LineEditDelegate | ( | QObject * | parent = 0 | ) | [inline] |
: QItemDelegate(parent) {}
| QWidget * QGpGuiTools::LineEditDelegate::createEditor | ( | QWidget * | parent, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index | ||
| ) | const [virtual] |
| void QGpGuiTools::LineEditDelegate::setEditorData | ( | QWidget * | editor, |
| const QModelIndex & | index | ||
| ) | const [virtual] |
Reimplemented in SignalTableDelegate.
| void QGpGuiTools::LineEditDelegate::setModelData | ( | QWidget * | editor, |
| QAbstractItemModel * | model, | ||
| const QModelIndex & | index | ||
| ) | const [virtual] |
Reimplemented in SignalTableDelegate.