summaryrefslogtreecommitdiffstats
path: root/src/sql/models
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2012-11-02 14:41:27 +0100
committerJerome Pasion <jerome.pasion@digia.com>2012-11-02 14:41:27 +0100
commitc808dd27459e030fde0577feb8ba06e3bd465526 (patch)
tree4bf898dc4a88e2b03c9716f940638a2e01c6c0ce /src/sql/models
parentd9d8845d507a6bdbc9c9f24c0d9d86dca513461d (diff)
parent300534fc214f2547a63594ce0891e9a54c8f33ca (diff)
Merge branch 'master' of ssh://codereview.qt-project.org/qt/qtbase into newdocs
Diffstat (limited to 'src/sql/models')
-rw-r--r--src/sql/models/qsqlrelationaldelegate.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/sql/models/qsqlrelationaldelegate.h b/src/sql/models/qsqlrelationaldelegate.h
index 439dde2662..52a19dbb0a 100644
--- a/src/sql/models/qsqlrelationaldelegate.h
+++ b/src/sql/models/qsqlrelationaldelegate.h
@@ -82,17 +82,6 @@ QWidget *createEditor(QWidget *aParent,
return combo;
}
-void setEditorData(QWidget *editor, const QModelIndex &index) const
-{
- const QSqlRelationalTableModel *sqlModel = qobject_cast<const QSqlRelationalTableModel *>(index.model());
- QComboBox *combo = qobject_cast<QComboBox *>(editor);
- if (!sqlModel || !combo) {
- QItemDelegate::setEditorData(editor, index);
- return;
- }
- combo->setCurrentIndex(combo->findText(sqlModel->data(index).toString()));
-}
-
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
{
if (!index.isValid())