This patch changes the document viewer example to a plugin based
architecture.
It adapts the documentation accordingly.
Change-Id: Ia24028aa27e21fb8ab36f5ef3a9953be60858b19
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
The PDF is transparent, so the background shows through.
Pick-to: 6.5
Task-number: QTBUG-108924
Change-Id: I2fb78ad1b9453109a2d2eb19f2aad91f31679a0d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Adapted from https://www.shadertoy.com/view/WdscWN via the Qt Quick
Effects Maker and further tweaking by hand.
Because we do not have a defined pattern to compile shaders from sources
with qmake, building this demo with qmake is no longer supported.
Pick-to: 6.5
Task-number: QTBUG-108924
Change-Id: I0b19b6aa9865f2e8c259fb1d12dffd9a28eae72e
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
The commit 0391a2fb98
makes a lot of improvements to the demo, but it also makes it
no longer search your system's photos directory by default.
This commit also updates the project files.
The CMakeLists.txt file will use qt_add_qml_module() among other
things that our guildelines recommend.
The .qrc file will have the /qt/qml/photosurface prefix, in order to
make qmake compatible with the AUTO_RESOURCE_PREFIX module.
Task-number: QTBUG-108924
Pick-to: 6.5
Change-Id: I19291ead744f8eebcd4151f02b44f746b2040319
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
- use Pointer Handlers idiomatically, rather than PinchArea and MouseArea
- give PinchHandler precedence over DragHandler
- use Controls ToolTip (much easier than the ad-hoc one from before)
- use ScrollView rather than ad-hoc scroll decorators
- improve usage of FolderListModel: required props, and stop
concatenating folder + name
- set an informative window title
- bring the picture(s) being interacted with to the top
- use MomemtumAnimation from qtdeclarative/examples/quick/pointerhandlers
- when the animation ends, grow the canvas rightwards and downwards
so that no images are lost by being "flung" in those directions
- make main.cpp optional again: handle arguments in QML
- use QtQuick.Dialogs and remove widgets dependency
- stop using context properties
- translate all strings
- fix qmllint warnings
- update the walkthrough docs to explain what we're doing
Pick-to: 6.5
Task-number: QTBUG-108924
Change-Id: I5b10e314373d31e1b57b1031d481fa2b9b7afe7b
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.
Existing copyright statements remain intact
Task-number: QTBUG-88621
Change-Id: I9499ba4c20f610ffe8af0fc3e29e6581247f2c40
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
CMAKE_INCLUDE_CURRENT_DIR is not necessary anymore for moc since
CMake 3.8: https://cmake.org/cmake/help/latest/release/3.8.html#other-changes
Enable CMAKE_AUTOUIC only if .ui files are present.
Pick-to: 6.3
Change-Id: Ic34418e3306de0ee1769bc3153bb833f7951da19
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
All demos are using qt6_add_resources.
Pick-to: 6.2 6.3
Task-number: QTBUG-87643
Change-Id: I14c7d876b2ac3b1a24cec78fbd4463a46c71e564
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Needed for subsequent change that will check and error out if the
version is lower than 3.16. We do that to ensure all policies
introduced by CMake up to version 3.16 have their behavior set to
NEW.
Pick-to: 6.2
Task-number: QTBUG-95018
Change-Id: I23a59d7bfa89ffdacf8002b03657b7da38669ee2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This fails to build an apk on Android, it must use qt_add_executable
which handles some extra stuff internally.
Fixes: QTBUG-90747
Pick-to: 6.0
Change-Id: I600ae4f9fb5a4ad6bbb8d5c3a06d95314ec0552e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
The example's qmake setup includes the app icon config,
which is dropped in the CMake setup for some reason.
In addition, updated the app icon setup instructions
to use this example as a reference instead of the
snippet file.
Change-Id: I12bb8b007904164226dc78f2a2e162b08c9003e1
Fixes: QTBUG-83696
Reviewed-by: Paul Wicking <paul.wicking@qt.io>