Minor updates to the OSM example documentation
Pick-to: 6.7
Change-Id: I3a903246e9660abde552ac51628372265a4cc10e
Reviewed-by: Sadegh Taghavi <sadegh.taghavi@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
The demo crashes on Android with a nullptr dereference, because it fails
to locate any plugins. The reason is currently under investigation, and
probably related to an issue in the Android content file.
Prevent documentviewer from being built on Android.
Task-number: QTBUG-122041
Pick-to: 6.7
Change-Id: I810bf9787df4d4105c5d11e36f27d0bbe61b8d3d
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
The documentviewer demo re-uses its viewer plugins. It connects its
print button to the viewers' print functionalities, without keeping
track of the connections. That leads to double connects and crashes.
Store relevant connections in an array and disconnect them.
Fixes: QTBUG-121940
Pick-to: 6.7
Change-Id: Ifcef2097d874d6d37c7891bafc1805264282e984
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Change '* ' into ' *', and '& ' into ' &'
Pick-to: 6.7
Change-Id: I29223b069d92f67195405fa88795469a6cc767a0
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Added .ui.qml counterpart files for components that needed separation
between the UI and business logic.
Rebased to dev to get the newest changes
Added Cup snippet tags to ProgressForm.ui.qml
Added AbstractButton snippet tags to CoffeeCardForm.ui.qml
Fix ambiguous id's and corresponding property aliases in CoffeeCardForm.ui.qml
Added qdoc snippet tags to ChoosingCoffeeForm.ui.qml
Fixed incorrect file paths in snippet tags in coffee.qdoc
Moved transitions from ProgressForm.ui.qml to Progress.qml
as they did not work properly from there to make the coffee cup
animation work properly.
Added property alias "contentItem" to ProgressForm.ui.qml
to access it's properties from Progress.qml to make the progress bar
animation work properly.
Fixed x coordinates in custom sliders so that the slider handle
will not go over the slider bar and become unresponsive.
Removed "brewTime" property int from ProgressForm.ui.qml as it was
not needed there.
* Fixed x coordinate in Sliders to work like they are described
in official documentation.
* Created property int in Progress.qml to better describe cup animation
velocity factor.
Fixes: QTBUG-120280
Pick-to: 6.6 6.7
Change-Id: I3ed0e1c6777674e2d9502aab1e5c670b6099f60a
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
The ColorOverlay is replaced with IconLabel to remove the dependency on
Qt5Compat.GraphicalEffects.
Fixes: QTBUG-121929
Pick-to: 6.7
Change-Id: I7dc6fd6538a2a1dd3c1e20a4dd401137a9e1030a
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
... by making sure it's properly part of the app bundle.
Task-number: QTBUG-115085
Change-Id: I196d309c9400acb897950dbfb5fe99d9d7f13756
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Rename to just 'StocQt', as we don't talk about demos
anymore. Also mark example as to be highlighted.
Pick-to: 6.6 6.7
Change-Id: I2b88db8b505ea628702484eaf21e896c2097ed65
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
If the permission is granted, the user location will be visible and the
map view can be recentered.
Otherwise, if the user has already denied the permission and triggers
any action that needs the permission, a message dialog will notify the
user that the application needs the location permission, and the
permission is needed to be granted and the application needs to be
restarted.
Additionally, the PositionSource is not active when the permission is
not granted, and the distance and time layer is not able to show the
information until the user allows the application to use the location.
The user's location will be set from QML by PositionSource, then there
is no need to keep the QGeoPositionInfoSource object.
Task-number: QTBUG-121412
Task-number: QTBUG-121123
Pick-to: 6.7
Change-Id: I78856f8cc8d182aa7b02c1ffaba01a8871e0a0c6
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
osmbuildings requires Qt6::Positioning which shouldn't trigger a configure
issue when building qtdoc repo without QtPositioning module. The example
should be skipped instead.
Amends 180704c87c
Change-Id: I74f8010db5b6a1591f04e725a2f0711e5990f066
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
The MediaPlayer demo had an issue in the track options list where nested
scrolling caused some options to be difficult to access.
This is fixed by positioning all track options in a Column instead of a
ListView.
Additionally modified the TracksOptions implicit height binding to size
the component based on the amount of options.
Fixes: QTBUG-119285
Pick-to: 6.7 6.6
Change-Id: Iaa1ed2c370118a5c0119b233a59c7f4d8c0c70eb
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Reviewed-by: Lars Sutterud <lars.sutterud@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
The format for the package name for Android should follow the file
structure. Therefore, "org.qtproject.example" should be
"org.qtproject.example.calqlatr".
Fixes: QTBUG-121660
Pick-to: 6.6 6.7
Change-Id: Ic3281ec8ab695f5a10c368e736200aed9d9d8d0b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
"Injection of parameters into signal handlers is deprecated"
Change-Id: I12f6257b4cf2f5b79d9ba7153ad256292eebc0fd
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Restructure resource file management by relocating QML and asset files
from the resource files (qrc) to their respective modules within the
application. Moreover, the project has been divided into two distinct
submodules: LightningViewer and LightningViewerStyle.
The LightningViewer module includes the project's sources, QML files,
and assets, used for the model, view, and controller aspects.
On the other hand, the LightningViewerStyle module is dedicated to
defining a custom style generated by a tool. The purpose of separating
style-related files from LightningViewer is to simplify updates by
allowing the style generator tool to only modify contents within the
style subdirectory.
Task-number: QTBUG-121123
Pick-to: 6.7
Change-Id: Ib04fb156bd47b4033526c8eb9b33ccab76ab50e9
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Projects need install instructions to be usable on embedded platforms.
Fix existing instructions to put files into correct places.
Fixes: QTBUG-112024
Pick-to: 6.7
Change-Id: I6a3d84edc1c67281d5497e99144c159faf0f783c
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io>
Demos want to use more Qt modules, try to find all of them.
Pick-to: 6.7
Change-Id: I478a8dc7accdadd1c521f50491326e978f644f18
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io>
displayModel.handleBoundsChanged() didn't take an argument and always
handled the bounds of the display model. If a RuntimeLoader was used,
the object was out of bounds.
Make the function take a bounds argument and pass the right bounds to
be handled.
Task-number: QTBUG-119176
Pick-to: 6.7
Change-Id: I8a9986d9ebea14dea2246f02937fe47bbcf95191
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
There was no need to waste time for calculating the distance and time
of the last strike. The calculation should be considered when there's a
need for it, e.g. when the distance/time layer is visible.
Task-number: QTBUG-121123
Pick-to: 6.7
Change-Id: Ib841502baa5138c91730a308194c6485a28fca1a
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Add metadata about build time / runtime dependencies in the form
of Qt documentation modules. This should allow Qt Creator to hide
examples where needed Qt modules are not installed (because they
are optional in the Qt Online Installer).
Pick-to: 6.7
Task-number: QTBUG-120759
Change-Id: I03d8d75b273fe497803b9af9783b90e397b0638d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
It's a demonstration of using qtQuick3d to load and render big scene
Change-Id: Ie9065bd71f69f622f07c3bf78520cfbea0b2ce8b
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Fix a bug in the information of the last strike on the change of the
user's location.
Fixes: QTBUG-121043
Pick-to: 6.7
Change-Id: I2b9af6ad3246e58075ac60ce486299e4b7a62b4e
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Remove the implementation of copy/move constructors/assignments to
follow the rule of zero/five (LastStrikeInfo).
Use std::unique_ptr instead of QScopedPointer.
Remove the copy/move constructors and assignments of some classes
because they are not copyable/movable.
Prefer stack memory over heap memory whenever possible.
Fixes: QTBUG-121018
Pick-to: 6.7
Change-Id: Ie8784a49beeb23d4ccbf4c18a3158ab7b25b5c5b
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
This reverts commit 8fc3cd6675.
Reason for revert: As opposed to the commit message, this is not a minimal port. It changes the directory structure of the example, by starting to popuplate the previously empty samegame/samgame directory inconsistently. It breaks qtdoc build with examples.
Change-Id: I0749043047b21a34b613f73e36f2ade629e41f8d
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
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>
chrono::duration is used for time duration from the last strike.
Also there was a bug in calculation of the display text of time duration
in DistanceTimeLayer.qml that is fixed in this commit.
Fixes: QTBUG-121011
Fixes: QTBUG-121012
Pick-to: 6.7
Change-Id: I55f253bc7821328762cbff957eb9125c441bca2b
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
There is a problem in QQ3DPhysics. onBodyContact may still refer to
already deleted object - which causes the application to crash.
It happens when Accelerometer spam a lot with scene.spawnDice(...)
calls.
To avoid this crash, the timer-guard for rolling dices was added.
Pick-to: 6.7 6.6
Fixes: QTBUG-120364
Change-Id: I3ca3811662fb2400d61cb256c8b34885a6fe028a
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
The usage of QSharedPointer is replaced with the LightningItemData as
a value type to avoid heap memory allocation. Using stack-memory is
more efficient than heap-memory allocation for the high-speed arrival
of new lightning data.
Task-number: QTBUG-116750
Pick-to: 6.7
Change-Id: Ica837f5f3c5f24980bb597307c408aaffe3fbd02
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
There is no need to keep the example in the title, see also
https://wiki.qt.io/Qt6/Example-Guideline .
Pick-to: 6.7
Change-Id: If173285c2e0f0ef7d21a113e4e0713aef84511dc
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Renamed QML module and .qrc file in Coffee Machine example, because
using same name for application and QML module causes errors.
Fixes: QTBUG-120230
Change-Id: Iacb73681df83236cf01e3bae75da748de4cf4875
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reason for these changes is that it was discovered that some of the
UI elements of the re-designed Coffee Machine example did overflow the
target device display with lower than ~1080x1920 display resolution.
Added states to coffee cards that will scale the cards and their content
down if target device screen resolution is lower than set limit.
Added state to home component where text components will be scaled
down in target device screen resolution is lower than set limit.
Added some colors to Colors.qml to remove hardcoded color values.
Added states to sliders in Settings.qml and in CustomSlider.qml
that will scale them down if target device screen resolution is
lower than set limit.
Scaled the custom buttons heights down a bit throughout the
app to make them fit on screen.
Added state to progress page that will scale the caption text
down if target device screen resotion is lower than set limit
and set minimum width and height to dialog component so that
the text will not overflow its container.
Added states to ready page that will reduce the row spacing of the
grid component and scale the caption font size down if target device
screen resolution is lower than the set limit.
Tested successfully with Android emulators with screen resolution
ranging from 320x480 to 1440x3120.
Removed multiple property changes regarding text sizes in
Settings.qml and replaced them by binding the text objects
font size to a new property int that will be modified through state.
Added the missing when condition in state change to change
the font size in Setting.qml.
Renamed ambiguous id's
* Removed unused property aliases
* Re-applied missing qdoc snippet tags to Settings.qml which were removed
by mistake. This should fix one of the qdoc warnings in CI.
Fixes: QTBUG-116402
Pick-to: 6.7 6.6
Change-Id: I2524be43f943494f5ab7b2689b222a977996dac6
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
q3dviewer was missing as a plugin target in the example's
CMakeLists.txt.
Pick-to: 6.7 6.6
Change-Id: I1ec6791198551c45cbc1e2efaf4c7d2fd8792bcd
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Amend ba61af0bf3 and install the
abstractviewer library so that demo works after being deployed.
Pick-to: 6.7 6.6
Change-Id: I481b1d655d5666e11eef4d4aee99359750913750
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
The warning message is updated to cover the whole conditions.
Fixes: QTBUG-120482
Pick-to: 6.7
Change-Id: Ia11baf481510520dd250412d382616b9b25a8ac0
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Examples should be made available under the Commercial/BSD 3 clause license -- see e.g. QUIP-13 for this.
Pick-to: 6.7
Change-Id: Id12f62dc1f63363b8d4ab79ce3ac16d055e44c52
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Implemented lightning viewer example using a web socket connection to
an AWS gateway for real-time lightning data visualization worldwide.
Supports both landscape and portrait modes for optimal screen
presentation. Added diverse map layers, including live data and
distance-time layers. Added functionality to toggle between different
map types. The lv_style is auto-generated using figma-style-generator
tool based on specified design requirements (see the task description
and comments for more details).
Fixes: QTBUG-116750
Pick-to: 6.7
Change-Id: I2507c9b030cb0c91d1a7cf51267770735a35419b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
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>
The menu button icon did not appear on Android with the text method, so
added an icon svg to use on all platforms.
The initial label pop up was not wrapping on small screens so added a
height, modified properties to keep the original text size but wrap the
text.
Fixes: QAA-2183
Pick-to: 6.6 6.7
Change-Id: I2265e7558dfec839530b5f9b6a7a4129d7b081b2
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>