Subversion Repositories OpenInventory

Rev

Rev 159 | Rev 187 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 159 Rev 179
Line 8... Line 8...
8
8
9
Qt::ItemFlags MyModel::flags(
9
Qt::ItemFlags MyModel::flags(
10
         const QModelIndex &index) const {
10
         const QModelIndex &index) const {
11
Qt::ItemFlags flags = QSqlTableModel::flags(index);
11
Qt::ItemFlags flags = QSqlTableModel::flags(index);
12
12
-
 
13
-
 
14
-
 
15
13
/***********************************************
16
/***********************************************
14

17

15
if ((index.column() != 3) && (index.column() != 0))
18
if ((index.column() != 3) && (index.column() != 0))
16
     flags |= Qt::ItemIsEditable;
19
     flags |= Qt::ItemIsEditable;
17
//if (index.column() == 4)
20
//if (index.column() == 4)