10 #ifndef GUARD_DBDELEGATE_H_INCLUDE
11 #define GUARD_DBDELEGATE_H_INCLUDE
13 #include <dbdelegate/dbdelegate-config.h>
14 #include <dbstruct/dbcolumn.h>
16 #include <QStyledItemDelegate>
20 class QAbstractItemModel;
37 class DBDELEGATE_EXPORT
DbDelegate :
public QStyledItemDelegate {
59 virtual const DbModel *
61 const QModelIndex &index)
const;
65 const QModelIndex &index)
const;
69 const QModelIndex &index,
74 const QModelIndex & idx)
const {
82 QObject *parent = NULL);
91 const QStyleOptionViewItem &option,
92 const QModelIndex &index)
const;
97 const QStyleOptionViewItem &option,
98 const QModelIndex &index)
const;
104 const QStyleOptionViewItem &option,
105 const QModelIndex &index)
const;
111 const QModelIndex &index)
const;
117 QAbstractItemModel *model,
118 const QModelIndex &index)
const;
122 updateEditorGeometry (
124 const QStyleOptionViewItem &option,
125 const QModelIndex &index)
const;
130 const QVariant & value,
131 const QLocale &locale)
const;
144 const DbModelCol & col_data,
146 const QVariant & value);
150 const DbModelCol & col_data,
152 const QVariant & value);
156 const DbModelCol & col_data,
158 const QVariant & value);
162 const DbModelCol & col_data,
163 QDateTimeEdit *control,
164 const QVariant & value);
168 const DbModelCol & col_data,
169 QDoubleSpinBox *control,
170 const QVariant & value);
174 const DbModelCol & col_data,
176 const QVariant & value);
180 const DbModelCol & col_data,
182 const QVariant & value);
186 const DbModelCol & col_data,
188 const QVariant & value);
192 const DbModelCol & col_data,
194 const QVariant & value);
205 QStyleOptionViewItem *option,
206 const QModelIndex &index)
const;
218 QAbstractItemModel *model,
219 const QStyleOptionViewItem &option,
220 const QModelIndex &index);
224 void fucker (
int i );
228 #endif // GUARD_DBDELEGATE_H_INCLUDE
Provides display and editing facilities for data items from a model.
Definition: dbdelegate.h:37