summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/kernel/qsql.qdoc1
-rw-r--r--src/sql/models/qsqlrelationaldelegate.h11
2 files changed, 0 insertions, 12 deletions
diff --git a/src/sql/kernel/qsql.qdoc b/src/sql/kernel/qsql.qdoc
index 3b0e848af1..b3afe82245 100644
--- a/src/sql/kernel/qsql.qdoc
+++ b/src/sql/kernel/qsql.qdoc
@@ -31,7 +31,6 @@
\brief The QSql namespace contains miscellaneous identifiers used throughout
the Qt SQL library.
- \inheaderfile QtSql
\ingroup database
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())