Changeset 846 for trunk/src/sql/models/qsqlrelationaldelegate.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/sql/models/qsqlrelationaldelegate.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 60 60 public: 61 61 62 explicit QSqlRelationalDelegate(QObject * parent = 0)63 : QItemDelegate( parent)62 explicit QSqlRelationalDelegate(QObject *aParent = 0) 63 : QItemDelegate(aParent) 64 64 {} 65 65 … … 67 67 {} 68 68 69 QWidget *createEditor(QWidget * parent,69 QWidget *createEditor(QWidget *aParent, 70 70 const QStyleOptionViewItem &option, 71 71 const QModelIndex &index) const … … 74 74 QSqlTableModel *childModel = sqlModel ? sqlModel->relationModel(index.column()) : 0; 75 75 if (!childModel) 76 return QItemDelegate::createEditor( parent, option, index);76 return QItemDelegate::createEditor(aParent, option, index); 77 77 78 QComboBox *combo = new QComboBox( parent);78 QComboBox *combo = new QComboBox(aParent); 79 79 combo->setModel(childModel); 80 80 combo->setModelColumn(childModel->fieldIndex(sqlModel->relation(index.column()).displayColumn()));
Note:
See TracChangeset
for help on using the changeset viewer.