diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-11-14 14:42:32 +0000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-11-23 18:51:18 +0000 |
commit | 9fdb28d4a553561eabf11210d0b2146e78200844 (patch) | |
tree | edf2521e005f215d97cae8701fb9dd77f09d6412 /examples | |
parent | 9e2770d8995aedb07c517dd31395c8bb3a605def (diff) |
Fix deprecated API usage and compile warnings
- QVariant::Type deprecated, use QMetaType related APIs
- QNodeId not used as reference in for loops (nop but really noisy)
- some unused code
Change-Id: I08f72181ae6eeb369ca41015a21813cd7bf05231
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
(cherry picked from commit 490fa176b69a390ce13168ae6c87623449b36d88)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qt3d/3d-text/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/3d-text/main.cpp b/examples/qt3d/3d-text/main.cpp index 43ef47ce2..01243509b 100644 --- a/examples/qt3d/3d-text/main.cpp +++ b/examples/qt3d/3d-text/main.cpp @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) auto *textMaterial = new Qt3DExtras::QPhongMaterial(root); { // text int i = 0; - const QStringList fonts = QFontDatabase().families(); + const QStringList fonts = QFontDatabase::families(); for (const QString &family : fonts) { |