diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-19 09:58:09 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-19 09:58:09 (GMT) |
commit | ba4eafaa3bd46cfad891a4bbf1dd7dccefc4702e (patch) | |
tree | 556654eae0304c6abda1195df8fd6b0e4033ceb7 /src/sql | |
parent | 6fc27d49fbbbe69ea4bc00420a4fa25e767ba765 (diff) | |
download | Qt-ba4eafaa3bd46cfad891a4bbf1dd7dccefc4702e.zip Qt-ba4eafaa3bd46cfad891a4bbf1dd7dccefc4702e.tar.gz Qt-ba4eafaa3bd46cfad891a4bbf1dd7dccefc4702e.tar.bz2 |
silence compiler warnings
Silence shadowing warnings from gcc.
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/models/qsqlrelationaldelegate.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sql/models/qsqlrelationaldelegate.h b/src/sql/models/qsqlrelationaldelegate.h index 7600e52..96760e1 100644 --- a/src/sql/models/qsqlrelationaldelegate.h +++ b/src/sql/models/qsqlrelationaldelegate.h @@ -59,23 +59,23 @@ class QSqlRelationalDelegate: public QItemDelegate { public: -explicit QSqlRelationalDelegate(QObject *parent = 0) - : QItemDelegate(parent) +explicit QSqlRelationalDelegate(QObject *aParent = 0) + : QItemDelegate(aParent) {} ~QSqlRelationalDelegate() {} -QWidget *createEditor(QWidget *parent, +QWidget *createEditor(QWidget *aParent, const QStyleOptionViewItem &option, const QModelIndex &index) const { const QSqlRelationalTableModel *sqlModel = qobject_cast<const QSqlRelationalTableModel *>(index.model()); QSqlTableModel *childModel = sqlModel ? sqlModel->relationModel(index.column()) : 0; if (!childModel) - return QItemDelegate::createEditor(parent, option, index); + return QItemDelegate::createEditor(aParent, option, index); - QComboBox *combo = new QComboBox(parent); + QComboBox *combo = new QComboBox(aParent); combo->setModel(childModel); combo->setModelColumn(childModel->fieldIndex(sqlModel->relation(index.column()).displayColumn())); combo->installEventFilter(const_cast<QSqlRelationalDelegate *>(this)); |