Хранилища Subversion OpenInventory

Редакция

Редакция 163 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 163 Редакция 165
Строка 5... Строка 5...
5
#include <QSqlQuery>
5
#include <QSqlQuery>
6
#include <QObject>
6
#include <QObject>
7
#include <QSize>
7
#include <QSize>
8
#include <QSpinBox>
8
#include <QSpinBox>
9
#include <QMap>
9
#include <QMap>
-
 
10
#include <QTableView>
-
 
11
10
#include "iconform.h"
12
#include "iconform.h"
11
13
12
//! [0]
14
//! [0]
13
class SpinBoxDelegate : public QItemDelegate
15
class SpinBoxDelegate : public QItemDelegate
14
{
16
{
Строка 60... Строка 62...
60
62
61
63
62
class CPictureDelegate : public QItemDelegate
64
class CPictureDelegate : public QItemDelegate
63
{
65
{
64
    mutable QPixmap m_pxPicture;
66
    mutable QPixmap m_pxPicture;
-
 
67
private:
-
 
68
        QTableView *tblView;
-
 
69
65
 public:
70
public:
66
         CPictureDelegate( QObject *parent );
71
         CPictureDelegate( QObject *parent );
67
72
-
 
73
         QWidget *createEditor(
-
 
74
                     QWidget *parent,
-
 
75
                     const QStyleOptionViewItem &option,
-
 
76
                     const QModelIndex &index) const;
-
 
77
-
 
78
         void setEditorData(QWidget *editor,
-
 
79
                            const QModelIndex &index) const;
-
 
80
-
 
81
         void setModelData(QWidget *editor,
-
 
82
                           QAbstractItemModel *model,
-
 
83
                           const QModelIndex &index) const;
-
 
84
-
 
85
-
 
86
         void updateEditorGeometry(
-
 
87
                 QWidget *editor,
-
 
88
                 const QStyleOptionViewItem &option,
-
 
89
                 const QModelIndex &index) const;
-
 
90
68
         void paint(QPainter *painter, const QStyleOptionViewItem &option,
91
         void paint(QPainter *painter, const QStyleOptionViewItem &option,
69
                                const QModelIndex &index) const;
92
                                const QModelIndex &index) const;
70
93
-
 
94
        void setTableView(QTableView* table);
-
 
95
-
 
96
71
         //QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
97
         //QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
72
};
98
};
73
99
74
100
75
101