Commit Graph

11 Commits

Author SHA1 Message Date
Dheerendra Purohit 7d1a2ae694 Use QML_ELEMENT macro instead of qmlRegister* for stocqt-example
Updated the stocqt example to use compile-time QML registration via the
QML_ELEMENT macro instead of qmlRegisterSingletonType. This brings the
example in line with modern Qt 6 best practices and improves startup
performance and tooling support.

Pick-to: 6.9 6.8
Task-number: QTBUG-136712
Change-Id: Ifd2dbbebb9a770faf85340bae9aec624ea06d5a9
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
2025-05-24 20:30:30 +05:30
Dilek Akcay 7d6639ff32 Update stocqt according to API changes
Pick-to: 6.8
Task-number: QTBUG-127048
Change-Id: I6bdeabd97f6509942eb50327d32bcbe3c6c1a5ee
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-07-16 10:05:08 +03:00
Dilek Akcay 95a83c116c Fix stocqt warnings
Fixes: QTBUG-126517
Fixes: QTBUG-126578
Pick-to: 6.8
Change-Id: Ibd497e9c9c0d82864f2388d6e8e6844ffb2bacbb
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-06-28 10:58:17 +03:00
Lucie Gérard 8b36425fab Correct build system file license under example
According to QUIP-18 [1] all files under examples
should be licensed
LicenseRef-Qt-Commercial OR BSD-3-Clause

[1]: https://contribute.qt-project.org/quips/18

Pick-to: 6.7 6.7.0
Task-number: QTBUG-121787
Change-Id: Ia2e8f62af64a384196a9b0c02ac5b2fbf5404a8b
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-03-19 08:20:16 +01:00
Sakaria Pouke 19ad9d875b Update graphs qml import for stocQt
Fixes: QTBUG-122657
Pick-to: 6.7
Change-Id: Ib7bf1b15ae7e1bf4f65c83aef3399afd141c8a03
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-02-23 08:40:27 +02:00
Sakaria Pouke 75ed068b04 StocQt minor fixes
Fixes are based on comments in "Overhaul StocQt example" patch

Fixes: QTBUG-120471
Pick-to: 6.7 6.6
Change-Id: I5eae5aa4825f02066fae6430795c87f5ac633d42
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-01-16 11:31:54 +02:00
Sakaria Pouke 08d2700a81 Overhaul StocQt example
Implementing a new design and implementation for the StocQt example.
The new example uses Qt's REST API and json parser to read live stock
data.

Fixes: QTBUG-116593
Fixes: QTBUG-116594
Pick-to: 6.7
Change-Id: I2b491673bd7c9acb7812f88c508f42ad9cc9f869
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-12-22 20:40:50 +01:00
Kai Köhne 054c18b0d3 stocqt: Use named signal parameters
Fix QML runtime warnings:

qt.qml.context: qrc:/demos/stocqt/content/StockListDelegate.qml:99:13 Parameter "text" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
qt.qml.context: qrc:/demos/stocqt/content/StockListDelegate.qml:63:13 Parameter "text" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.

Pick-to: 6.5 6.6
Change-Id: I2d3d5fe6db56456777d7df0c8fbfda970994a22e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-08-27 15:40:08 +02:00
Lucie Gérard 6f57506953 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-07 18:23:52 +02:00
Kai Koehne 9194f8602b examples: Do not use versioned QML import
Ignore .ui.qml files though for now, until they are properly handled
by Qt Design Studio.

Task-number: QTBUG-89033
Change-Id: I85ea1dc2f85928e9fa1f473535687ab8b0288e9d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-12-02 16:04:51 +01:00
Venugopal Shivashankar 70ce5f4d3e Move demos to qtdoc repository
These demos use several modules and moving them allows to use for
example Qt Quick Controls 2 in them.

The shared directory should be removed and the examples made
self-contained.

Change-Id: I5dc667d22388651894d7d145b65752bc5c5cf6cf
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
2018-07-09 12:43:59 +00:00