diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-08-19 13:25:26 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-08-19 14:12:38 +0200 |
commit | 20fc1f447592e6dc6f3abd9cae5c3a55efed4b01 (patch) | |
tree | dc8fd70143b1a3faf78037d6629c985a8fc4f477 /tools | |
parent | 88b4ca5ea5b7a20cb4d44d45eb4cb0b777bb9201 (diff) |
Bump dependency version and fix compile errors
- Adapt to QMetaType/QVariant changes
- Adapt to QIODeviceBase
Change-Id: I7cb6b9b0bbc68954c839c2026e3984fd7f913ef9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dumpcpp/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp index e8c2ffd..086525c 100644 --- a/tools/dumpcpp/main.cpp +++ b/tools/dumpcpp/main.cpp @@ -361,7 +361,7 @@ void generateClassDecl(QTextStream &out, const QMetaObject *mo, if (propertyType.endsWith('*')) { out << '{' << Qt::endl; out << " int typeId = qRegisterMetaType<" << propertyType << ">(\"" << propertyType << "\", &value);" << Qt::endl; - out << " setProperty(\"" << propertyName << "\", QVariant(typeId, &value));" << Qt::endl; + out << " setProperty(\"" << propertyName << "\", QVariant(QMetaType(typeId), &value));" << Qt::endl; out << '}' << Qt::endl; } else { out << "{ setProperty(\"" << propertyName << "\", QVariant(value)); }" << Qt::endl; |