summaryrefslogtreecommitdiffstats
path: root/src/sql/models
diff options
context:
space:
mode:
authorLars Knoll <[email protected]>2020-06-15 09:09:08 +0200
committerLars Knoll <[email protected]>2020-08-15 10:56:29 +0200
commit8929c0a3550ae27cb5c9ed276d4c5a85594ba682 (patch)
tree56998feaa3acec13cc575a7f95b12b28e4407c44 /src/sql/models
parentaf263b003be2f2e111ddc398bc8918cc006fcbb3 (diff)
Remove QVariant(int type, void *data, ...) constructor
It was marked internal anyway. Use the constructor taking a QMetaType instead. Change-Id: I15b9cd0911aac063a0f0fe0352fa2c84b7f7c691 Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/sql/models')
-rw-r--r--src/sql/models/qsqlrelationaldelegate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/models/qsqlrelationaldelegate.h b/src/sql/models/qsqlrelationaldelegate.h
index 2f16a4a54b7..189fc876fdd 100644
--- a/src/sql/models/qsqlrelationaldelegate.h
+++ b/src/sql/models/qsqlrelationaldelegate.h
@@ -112,7 +112,7 @@ QWidget *createEditor(QWidget *aParent,
const QByteArray n = editor->metaObject()->userProperty().name();
if (!n.isEmpty()) {
if (!v.isValid())
- v = QVariant(editor->property(n.data()).userType(), nullptr);
+ v = QVariant(editor->property(n.data()).metaType());
editor->setProperty(n.data(), v);
return;
}