summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-11-19 09:58:09 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-19 09:58:09 (GMT)
commitba4eafaa3bd46cfad891a4bbf1dd7dccefc4702e (patch)
tree556654eae0304c6abda1195df8fd6b0e4033ceb7 /src/sql
parent6fc27d49fbbbe69ea4bc00420a4fa25e767ba765 (diff)
downloadQt-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.h10
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));