| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a user activates the boldAction for example, the code was replacing
QTextCharFormat's font with a default-constructed font that has the bold
attribute set, which meant that it could not be bold, italic, underlined
struck out, and with a custom size and color at the same time. On the
other hand, when we do it the current way:
textArea.cursorSelection.font.bold = checked
we call QQuickTextSelection::font(), QFont::setBold(), and then
QQuickTextSelection::setFont(). (QFont is a QML value type, so it's the
only way.) Perhaps at some point, something was going wrong with that,
but it seems to work now.
Amends 045f9ce192d841f3cc36d514b5f238b46488b41e
Fixes: QTBUG-136250
Pick-to: 6.8 6.9
Change-Id: I268e5814e7aa52aeb5aaec2d1a8fbfbc0d670236
Reviewed-by: Oliver Eftevaag <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Text editing controls TextField and TextEdit provide their own context
menus since 3b598b6f7509f57e198e7de1f04e4333555e7227. We don't want a
global menu key shortcut to preempt those.
Task-number: QTBUG-136253
Pick-to: 6.9
Change-Id: I7d0ec3754e24154b203c8ccd95801542a185a1c4
Reviewed-by: Oliver Eftevaag <[email protected]>
Reviewed-by: Mitch Curtis <[email protected]>
|
|
|
|
|
|
|
| |
Task-number: QTBUG-136251
Pick-to: 6.8 6.9
Change-Id: I64d7a406d4acff5395cfc18c201888c17a44e10f
Reviewed-by: Oliver Eftevaag <[email protected]>
|
|
|
|
|
|
|
| |
Pick-to: 6.8 6.9
Task-number: QTBUG-119988
Change-Id: Iffc7df85f25024301efef591eb3fbfb1cfbe2f17
Reviewed-by: Oliver Eftevaag <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-set button and other text sizes back
-add thumb and track back to switch
-Change main relative layout gravity from center_vertical to center_horizontal
to make the topMargin take effect
-add previous topMargins back
-remove layout_margins dimension as there were already dimensions for all the places
it was used in
-change naming of some dimensions
-remove unused dimensions
-Adjust text sizes in qtquickview_kotlin and java, they were little
too small on high dpi devices
-Adjust text sizes, margins and other dimensions in Main and Second.qml files
Fixes: QTBUG-134405
Pick-to: 6.9
Change-Id: I35bc7892abe2435bd63b40bca9a21061ae9f0fa8
Reviewed-by: Petri Virkkunen <[email protected]>
|
|
|
|
|
|
|
|
| |
QPair is just an alias of std::pair anyway.
Task-number: QTBUG-115841
Change-Id: I26fc90adcc775aac9955ad57304af914dc4ed48f
Reviewed-by: Ulf Hermann <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Implemented a qdocinc similar to the other one used in general Qt
examples.
Fixes: QTBUG-135200
Pick-to: 6.8 6.9
Change-Id: I050da4162eea21cdbae00806b40525fc8e566a0c
Reviewed-by: Petri Virkkunen <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need to pass a parent to the PieSlices in order to make them visible.
Use inline components to reduce the boiler plate.
Amends commit 775eac90ed10dc0c854e7d249d81782f228597e7
Pick-to: 6.9 6.8
Fixes: QTBUG-135475
Change-Id: I55e2591703ceecbeb883a3f0de2a2a84b1600529
Reviewed-by: Fabian Kosmale <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
Since 3b598b6f7509f57e198e7de1f04e4333555e7227 TextArea comes with a built-in
context menu. Here we demonstrate how to add extra menu items to the end.
Pick-to: 6.9
Task-number: QTBUG-35598
Task-number: QTBUG-134903
Change-Id: I1e3d8c044939521aaa076486630e3b879130dfd1
Reviewed-by: Mitch Curtis <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
Because it's an example project, not a subdir project that adds other
example projects.
Amends 0b23a68fabf6bfcb03d04db7119c2985d7b5d84d
Pick-to: 6.8 6.9
Change-Id: Iaaab440d1b6e75d89f0948083e275b2d7e7009ef
Reviewed-by: Alexey Edelev <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, the basic style did not respect the system's dark mode
settings because the palette initialized by QQuickBasicTheme lacked
definitions for dark mode colors.
This commit updates the palette initialization to dynamically set colors
based on the current system color scheme. Additionally, the palette is
reinitialized whenever the system color scheme changes.
The controls gallery example has been updated to demonstrate the new
functionality.
[ChangeLog][Controls][Basic] Basic style supports dark mode now.
Fixes: QTBUG-135207
Change-Id: I2d6a74b407a7981905a9b86e97004cf0609a4bf0
Reviewed-by: Mitch Curtis <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Added an example of combining QThread and QAbstractItemModel - a feat
that our customers ask every now and then
Task-number: QTBUG-135351
Pick-to: 6.8 6.9
Change-Id: I476e7121361e4d85c2d87eb663f0389a337a3085
Reviewed-by: Fabian Kosmale <[email protected]>
|
|
|
|
|
|
|
|
| |
Since StandardKey.HelpContents has two key bindings (at least on ubuntu)
then setting `sequences` removes the warning.
Change-Id: If4fb733fe562f1fc56af0d53ae029fa3bd32c0e0
Reviewed-by: Santhosh Kumar <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After bumping the Android compile and target versions to 35,
disable edge-to-edge feature that arrives with Android 15, because it
will be easier for users to work with this for now.
Later we'll add support for edge-to-edge feature.
Task-number: QTBUG-134880
Pick-to: 6.9 6.8
Change-Id: I8d703c6c6b925a39da9ac8ea6a3d23eaa9b3c3a0
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch updates qtdeclarative examples to use
SDK 35 as a target and compile version SDK.
Task-number: QTBUG-130285
Task-number: QTBUG-129461
Pick-to: 6.9 6.8
Change-Id: Ie11f8bebff7dfeb4c1a87c07826f9e9ef0f78d4b
Reviewed-by: Rami Potinkara <[email protected]>
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use required properties where needed, and properly qualify lookups. Use
ComponentBehavior: Bound so that the delegates can safely refer to the
ids in the same file.
This does not fix the unqualified warning in Heart.qml, as that file is
auto-generated, and the generator would need the fix instead.
Task-number: QTBUG-134589
Pick-to: 6.8 6.9
Change-Id: I6ef213004e0bb3e905a831749e9f0c2c5ca92518
Reviewed-by: Sami Shalayel <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Looking up private libraries requires version 6.9 or higher.
Amends: f71e2f99556c59f6f75fcc420542a67cef917f22.
Pick-to: 6.9
Change-Id: I3a22893aef4dda6825955157667bec38f7b82b96
Reviewed-by: Alexey Edelev <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
* add dummy CMakeLists.txt files
* add qtabstractlistmodel examples to the examples CMakeLists.txt
Change-Id: I9af5bcb79a5cc71e7a4a50a5a674b97ba70538b0
Reviewed-by: Soheil Armin <[email protected]>
Reviewed-by: Konsta Alajärvi <[email protected]>
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement QQuickHeaderViewDelegate as the base class for header view
delegates, introducing 'headerView' and 'orientation' properties.
Separate previous delegate settings into HorizontalHeaderViewDelegate
and VerticalHeaderViewDelegate components for Basic, Fusion, and Imagine
styles.
This change improves the modularity and reusability of header view
delegates across different styles. It also allows for more consistent
behavior and easier customization of header views.
A test suite has been added to verify default property settings and
ensure the new components work without warnings.
[ChangeLog][QtQuickControls][HeaderView] Add dedicated delegate
components for vertical and horizontal header views.
Task-number: QTBUG-70326
Change-Id: I8831e77f6909bdae13c3a7262145ab156f63a59a
Reviewed-by: Mitch Curtis <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Looks like the expected switch state was flipped at some point, but was
forgotten in the initial QML loading handler. Removed the negation in
checking the switch status.
Fixes: QTBUG-134087
Pick-to: 6.9 6.9.0
Change-Id: I8ee56515145aa992546210bc147dce62652512c1
Reviewed-by: Olli Vuolteenaho <[email protected]>
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a missing dependency to QtQuick so that qmlls stops complaining
about Spinner's base type QQuickItem.
Amends a86fd709dd4d315cfe4fea77ea0bc730131fe840.
Pick-to: 6.8 6.9
Change-Id: I7e8af3ee053ecbe66074104be86359a006ed9a05
Reviewed-by: Fabian Kosmale <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This includes:
- turning VERIFY_SOURCE_SBOM ON
- adding rules to the licenseRule.json files
- correcting the licensing given via REUSE.toml files
- renaming license files not located in LICENSES folder.
Their name needs to be prefixed with `LICENSE.` to be ignored
by reuse and excluded from the source SBOM. The names are
updated in the corresponding qt_attribution.json
A lot of files are skipped during the license test,
but all are present in the source SBOM.
This is why corrections are needed before turning the
source SBOM check on.
[ChangeLog][Third-Party Code] Renaming the license files with prefix
LICENSE. to have them ignored by reuse tool.
Task-number: QTBUG-131434
Pick-to: 6.9 6.8
Change-Id: I2b3e4750405f13a97b350ee65def30f1330526a3
Reviewed-by: Joerg Bornemann <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you use QQmlApplicationEngine to auto-load translations you need to
make them visible by placing them inside the relevant QML module.
Pick-to: 6.9 6.8
Fixes: QTBUG-116588
Change-Id: I4b768c6ad6ef763a5d6c43aaa794860f7751398a
Reviewed-by: Sami Shalayel <[email protected]>
Reviewed-by: Olivier De Cannière <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Resolves QDoc warnings of type
Macro '\tab' invoked with too few arguments (expected 4, got 3)
Pick-to: 6.9
Change-Id: I1e0dc56daa9eb3a8565e4d691a4504bfa3d0747c
Reviewed-by: Nicholas Bennett <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Android Studio will default to using JDK21 from Ladybug onwards. This
causes deprecation warnings about settings the source/target
compatibility to Java 8.
The more modern fix would be to use toolchains, but that would
apparently require adding a toolchain resolver. To keep it simple let's
just update the values to Java 17.
Fixes: QTBUG-132802
Pick-to: 6.8 6.9
Change-Id: Ic278a4ea7da8d598cee963dbfce0f6d6c00f0603
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Just to make things prettier and help with testing (as the final string
will be the same in 6.8 and 6.9).
Amends 8b6905704eaba702cd337c99f0845ba748f73ffb.
Pick-to: 6.9
Fixes: QTBUG-133493
Change-Id: Ic4e5709e150afba7d2fc502f07ea241f25d78205
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove any code related to manual target device orientation handling
from Qt Quick for Android examples. Provide alternative landscape
specific layout for examples.
Remove unused variables and imports.
Move unnecessary global variables to local.
Fix couple variable namings in qtquickview_kotlin MainActivity.kt.
Fixes: QTBUG-133325
Change-Id: I55ae0df59dd8b02b5f6cfadccc94095d4b7d4ac1
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most people should use the simplest way to instantiate a
QQmlListProperty. Make that clear and add a relevant snippet to the
documentation of the ctor.
Pick-to: 6.9 6.8
Fixes: QTBUG-58643
Change-Id: I6ce07815fe3e74d4b859cc48028e3dd5724fb2ea
Reviewed-by: Alexei Cazacov <[email protected]>
Reviewed-by: Olivier De Cannière <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Looks like some variable renaming was missed at some point. Renamed
calls to match the actual name of the member variable.
Fixes: QTBUG-133276
Change-Id: Ieb7285ae7b617d8a84b3ad59e83f3140dd70f35f
Reviewed-by: Assam Boudjelthia <[email protected]>
Reviewed-by: Olli Vuolteenaho <[email protected]>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.9
Fixes: QTBUG-133481
Change-Id: Iea93f6599f73476cb42305a9fd1b6b48802176f8
Reviewed-by: Alexey Edelev <[email protected]>
Reviewed-by: Volker Hilsheimer <[email protected]>
|
|
|
|
|
|
|
|
|
| |
By limiting the page stacking there is no need for handling
multi-page navigation.
Fixes: QTBUG-132715
Change-Id: Ibbd99834d2740653340fd785f94c19215eab2e7d
Reviewed-by: Mitch Curtis <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The SceneGraph - RHI under QML example gives the impression that
QQuickWindow::beforeRendering() is used with underlays and
QQuickWindow::afterRendering() is used with overlays which is
misleading.
QQuickWindow::beforeRendering() can be used to upload data to buffers in
both instances. Then, based on whether an underlay/overlay is required,
the user can QQuickWindow::beforeRenderPassRecording() or
QQuickWindow::afterRenderPassRecording(), respectively.
This patch updates the documentation to make this distinction clear.
Fixes: QTBUG-130570
Pick-to: 6.6 6.7 6.8 6.9
Change-Id: I3d086b9309d759a5e80f4abbd81d2fc1da55e9f0
Reviewed-by: Michal Klocek <[email protected]>
|
|
|
|
|
|
|
| |
Usage of a private module needs a respective find_package call now.
Change-Id: I20f7571e11ab9b2ca6d185b4834e72100d9ce2d6
Reviewed-by: Alexandru Croitor <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch fixes an issue with drag and drop functionality in the
example, particularly after long scrolling. The problem stemmed from two
main factors:
- The table view was stealing DropArea events when interactive.
- The drop area was positioned behind the table view's contentItem,
preventing it from receiving the events.
The drop area is now positioned above the table view, ensuring it can
receive events during dragging operations. The table view's interactive
mode is temporarily disabled when dragging begins and restored to its
previous state when dragging ends.
Task-number: QTBUG-125767
Change-Id: I8920284f4652464bccd92109a2a9685228e11783
Reviewed-by: Richard Moe Gustavsen <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this patch, dropping selected cells into an invalid place in the
TableView could result in partial data loss. This occurred because some
of the selected data couldn't be set to the new cells, and the data was
copied at the start of the drag operation.
This patch improves the drag-and-drop functionality by:
- Checking the possibility of copying selected data to target cells
before the drop occurs (and during dragging).
- Avoiding highlighting of invalid target cells during the drag
operation.
Task-number: QTBUG-125767
Change-Id: Iff1058c2239f4bad3430f4f01ccea619f1ac8773
Reviewed-by: Santhosh Kumar <[email protected]>
|
|
|
|
|
|
|
|
|
| |
This commit addresses the edit proposals mentioned in the QTBUG-131978.
Task-number: QTBUG-131978
Pick-to: 6.9 6.8
Change-Id: Ib94379c6dc0778f5aee8e53c5f1015ad7b10779f
Reviewed-by: Fabian Kosmale <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
These versions are currently all over the board, and the intention is
to have them in line with the Qt for Android requirements (which is
Gradle 8.10 and AGP 8.6). Also update the Kotlin plugins while at it.
Task-number: QTBUG-132815
Pick-to: 6.9 6.8
Change-Id: I72d8cb15d80b8b69301bbc2bbfeebf779ef137df
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
This change removes a duplicate mavenCentral repository
definition from qtabstractitemmodel_java settings.gradle
file of Qt Quick for Android example.
Fixes: QTBUG-132792
Pick-to: 6.9 6.8
Change-Id: Ib4d719a7c12ff536a7da588387badd097edeeeb6
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
| |
qtabstractitemmodel_java example was changed to use editable model.
Reflect that change in the example docs.
Fixes: QTBUG-132395
Change-Id: Ia4d1b33b9b8862efad502fe45e6fbd3584ca274f
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
| |
Change-Id: I08b4527cc13f4fb88a2fc5d5c24163e3315e99c9
Reviewed-by: Qt Submodule Update Bot <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since setData() and dataChanged() methods were added to
QtAbstractItemModel Java class, modify the existing model in
qtabstractitemmodel example to an editable one to showcase these
methods.
Changes includes:
- Main.qml:
- Minor QML coding convention based changes
- Changed cell size
- Changes that enable cell text editing and
forwarding the changes to the model
- Changed Text alignment inside cell
- Cell text is fetched from new "edit" role
MyDataModel.java:
- Added override for setData()
- Removed not needed roles "column" and "row" and
replaced them with new "edit" role
- Modified the Cell class to suit better editable model
- Squashed generateRow() and generateNewRow() into one
generateNewRow()
- Added internal datalist updating to removeColumn()
Fixes: QTBUG-130254
Change-Id: I791ad33e3b729617a7f53f6553e11fc39878edae
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Popup uses a Pane as its popup item, so now that Pane reflects its
explicitly set contentWidth/Height through implicitContentWidth/Height
we can use the same expression for implicit width/height as regular
controls, which hooks us into the safe area binding loop detection
as well.
Pick-to: 6.9
Change-Id: I3709978dae0271d7daf44fc6988f09f03df15b1f
Reviewed-by: Mitch Curtis <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
Now that Pane reflects its explicitly set contentWidth/Height through
implicitContentWidth/Height we can use the same expression for implicit
width/height as regular controls, which hooks us into the safe area
binding loop detection as well.
Pick-to: 6.9
Change-Id: Ie31b740a1e405341fc5f0ed9673b213292e4afd9
Reviewed-by: Oliver Eftevaag <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change currently used onStatusChanged method to new one which delivers
the QtQuickViewContent with it in qtquickview examples.
To showcase how to use the new onStatusChanged method and how it's
useful in an application where there is multiple Qt Quick view contents.
Add private variable for current Qt Quick view content and store
the content coming with onStatusChanged in it. To avoid unnecessary
code execution and warnings in other parts of the example.
Task-number: QTBUG-127420
Change-Id: I375d21611c071d0d1b17cef7f51f221b21c74e09
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since we now support having multiple QtQuickViews loaded at once, it
was decided that we can modify the existing 1-view, content-switching
examples to instead display the available QML views all at once.
This change includes:
- Necessary QML changes to fit the content onto one view, including
text wrapping and anchoring changes
- Android layout changes to add a second layout for the second
QtQuickView
- Source changes to load the second view, rename variables to match the
new functionality, and handle orientation changes.
Task-number: QTBUG-129288
Change-Id: I5c8c5e3de168365ead6fdbe9cfe7ad6285d4b8bf
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
| |
Change-Id: I09e1ddc335ea77a6d15dcb160e58ab01919ceee1
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
|
|
|
|
|
|
|
|
|
| |
This update removes the custom table cell and uses the TableViewDelegate
type as the main TableView's delegate.
Task-number: QTBUG-114636
Change-Id: Icc2fd121d66f2bd1a6102e8575b75abd46940b96
Reviewed-by: Santhosh Kumar <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These were used in early versions of the Android Studio plugin to copy
and package the libraries created by Qt build before AAR builds were a
thing. Probably at some point they were accidentally committed into the
examples.
I tried builds after these were removed and there was no change to the
behavior of the app.
Task-number: QTBUG-131673
Pick-to: 6.8
Change-Id: I9f49d24bea3d7da8ba898af966066fb4050defc5
Reviewed-by: Nikunj Arora <[email protected]>
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The reasons are the same as mentioned in
88660cd34a3161e656b8d2d558544d11ef897d87, but that commit didn't touch
the Kotlin examples, probably because of a mistake(?).
I tried removing the blocks, and deploying the examples worked without
issues.
Task-number: QTBUG-131673
Change-Id: I166b39935c479220935a895778fc618119119552
Reviewed-by: Assam Boudjelthia <[email protected]>
|
|
|
|
|
|
|
| |
Task-number: QTBUG-130991
Pick-to: 6.8 6.8.1
Change-Id: Ie2afcc693ef13ab482229e77e62514183675e9e7
Reviewed-by: Oliver Eftevaag <[email protected]>
|