wumu
2024-11-26 5efd96cc316f8a704f0f6315b85078b738ddee04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef NOEDITITEMDELEGATE_H
#define NOEDITITEMDELEGATE_H
 
#include <QItemDelegate>
 
 
 
class NoEditItemDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    NoEditItemDelegate(QObject *= 0);
 
    QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const;
};
 
#endif // NOEDITITEMDELEGATE_H