aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols
Commit message (Collapse)AuthorAgeFilesLines
* Rename Fluent style to FluentWinUI3Doris Verria2 days569-60/+60
| | | | | | | | | The style is based on the WinUI3 design system, which follows the Fluent design. Task-number: QTBUG-125279 Change-Id: Ie92c35a5c1d3eafdbb377d1c49df4b8cc84e1e98 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Fluent Style: Add ProgressBar controlDoris Verria2 days27-0/+528
| | | | | | | | | Use qqcstylegenerator and add customizations in QML to support accent color and animation for indeterminate state. Task-number: QTBUG-125279 Change-Id: I67f207aad85620cf86e7e844df97777bd5fd3402 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fluent Style: Add TextField and TextArea controlDoris Verria2 days56-4/+1166
| | | | | | | | | | When the TextField/Area is focused in the Fluent style, an accent colored stroke is painted at the bottom. Add support for this using QQuickPaintedItem. Task-number: QTBUG-125279 Change-Id: I698d9f285ab979738aac0069a363a550e82b805d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Merge branch 'nativemenus' into devRichard Moe Gustavsen5 days33-0/+669
|\ | | | | | | Change-Id: I90c2b9de9244b66556024b3b124004c1d1bb3174
| * QQuickMenuItem: add implicitTextPadding and textPaddingRichard Moe Gustavsen6 days2-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the properties "implicitTextPadding" and "textPadding" to MenuItem. They can be used by the style to ensure that all MenuItems inside the same Menu end up left-aligned WRT text. Each MenuItem should set implicitTextPadding to be the needed space from the left edge of the contentItem to the text label. QQuickMenu will then iterate over all the MenuItems inside the same Menu, and set textPadding to be the maximum implicitTextPadding found. All MenuItems should then use textPadding (which will end up the same for all MenuItems) to position the text. This API is meant to solve the problem that MenuItems inside a single Menu can have different contents. Some can be checkable, some can have an icon, some are just plain text. And for several of our styles (e.g macOS and Windows), we want the text to be left-aligned regardless of that. Without this API, The checkmark inside a checkable MenuItem would be left-aligned with the text inside a plain MenuItem etc. [ChangeLog][Controls][MenuItem] A MenuItem now has two new properties (implicitTextPadding and textPadding) that can be used for aligning the text across all MenuItems inside a Menu. Change-Id: I1f2248b31c63d6b9780d8fc77229a8b902362f70 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
| * Menu: add insets to the menus, to accommodate for drop shadowsRichard Moe Gustavsen8 days2-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several of the styles offers a Menu with a drop shadow. And the shadow is drawn on the outside of the Menu. This works fine when the menu is shown as an item in the scene, since Quick allows controls to draw out-of-bounds. But when we now place the Menus inside native windows, this will no longer be the case, as the windows will be resized to fit the Menus, shadows excluded. To solve this, this patch will make the Menus bigger, without touching the size of the background, so that they include the drop shadows. This is easily done by pushing the background items a bit in, using insets. The next issue is that when the application, or the MenuBar, requests a Menu to open at at specific position, we want the top left corner of the menu frame to be placed at this position. But since the Menu background is now shifted into the Menu, we need to teach QQuickPopup and and QQuickMenu to take insets into account when positioning a popup/menu. Taking the insets into account like this should be fine, since they're documented to be used for this exact purpose, of adding drop shadow effects. Change-Id: I2e5f0bcf14100d92dc4cd3c2cb7630601c0c1320 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * Merge remote-tracking branch 'origin/dev' into nativemenusRichard Moe Gustavsen9 days44-49/+67
| |\ | | | | | | | | | Change-Id: I4dbf262105ab7bfd2ae9288acd0f9ef4306e8d48
| * \ Merge remote-tracking branch 'origin/dev' into nativemenusRichard Moe Gustavsen2024-05-105-6/+12
| |\ \ | | | | | | | | | | | | Change-Id: I6a90b43404909ada18d7bf812b8919d5b68493d4
| * | | macos style: add CheckIndicatorRichard Moe Gustavsen2024-04-297-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The macOS style is currently falling back to use a CheckIndicator from the Fusion style. This doesn't look very native on macOS. This patch will therefore implement the missing CheckIndicator for the macOS style, and try to make it look as native as possible. Change-Id: I4c0a56de3972a92e4e3791852c043f08a2006eb1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | | macos style: Add Menu and MenuBar controlsRichard Moe Gustavsen2024-04-2910-0/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The macOS style is currently falling back to use a MenuBar, MenuBarItem, MenuSeparator etc from the Fusion style. This doesn't look very native on macOS. This patch will therefore implement the missing MenuBar controls for the macOS style, and try to make them look as native as possible. Change-Id: I84f16b7765ec42504eb70a31eb0f649f3d2ecdcc Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | | windows style: add CheckIndicatorRichard Moe Gustavsen2024-04-257-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Windows style is currently falling back to use a CheckIndicator from the Fusion style. This doesn't look very native on Windows. This patch will therefore implement the missing CheckIndicator for the Windows style, and try to make it look as native as possible. Change-Id: Ic2e3333a3dc34414b5e848735c231473ec18afde Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | | windows style: add Menu and MenuBar controlsRichard Moe Gustavsen2024-04-2510-0/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Windows style is currently falling back to use a MenuBar, MenuBarItem, MenuSeparator etc from the Fusion style. This doesn't look very native on Windows. This patch will therefore implement the missing MenuBar controls for the Windows style, and try to make them look as native as possible. Change-Id: I1af92535f49c619b3aa60df9df96a08521235e88 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | | Merge remote-tracking branch 'origin/dev' into nativemenusRichard Moe Gustavsen2024-04-2313-45/+103
| |\ \ \ | | | | | | | | | | | | | | | Change-Id: I0fba9aba672ac5c216a9a90e03679286870472fa
| * \ \ \ Merge remote-tracking branch 'origin/dev' into nativemenusRichard Moe Gustavsen2024-04-081-3/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Change-Id: I0f6bdb4e5b51496370bfa54ae757bcf645c5a5b8
| * \ \ \ \ Merge remote-tracking branch 'origin/dev' into nativemenusRichard Moe Gustavsen2024-04-04134-131/+138
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Change-Id: I9c83c4823f9c75ba3124f1dc9eb07fbbced4ee28
| * | | | | | Add documentation for native menusMitch Curtis2024-04-043-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-69558 Change-Id: Ie459aa5235959fc9007d01fcc568190d67880bdf Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | | | | Add new Fluent style for Qt Quick ControlsDoris Verria5 days491-1/+9584
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new Fluent style based on Windows UI3 and Fluent style. Style is largely image-based using Figma designs and the qqcstylegenerator tool for generation from Figma. The generated Config.qml contains all the geometry, layouting, and image path information for each control and state as seen in the Figma templates. Custom adjustments are added in QML. Availability: Style is made availalbe on all platforms. It should use platform palette read from the system when on Windows 11+ (to be added) and use hardcoded values from the style guidelines when on other platforms. Palette support: Being image-based the style currently offers palette support only for text-related roles. Accent color support per-control is to be added in follow-up commits. Font: The style uses the Segoe UI Variable font if available. Controls: This initial commit starts by adding ApplicationWindow, Button, CheckBox, RadioButton, Switch, Slider, RangeSlider. To be addressed in follow-up commits: - More controls - Add focus frame for focused controls - Use of platform palette on Windows 11+ platforms - Accent color support - Documentation [ChangeLog][QtQuick][Controls] Introduction of Windows11 style for Qt Quick Controls. Task-number: QTBUG-125279 Change-Id: I30adc142f39d12017bdbcb47cab417115b25a959 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | | | CMake: Move add_subdirectory(impl) calls for styles to the frontAlexandru Croitor12 days2-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise in a static build on macOS we get the warnings below, which happen when a target references a dependency that has not been created yet. CMake Warning at qtbase/cmake/QtFindPackageHelpers.cmake:551 (message): Could not find target Qt6::QuickControls2MacOSStyleImpl to query its package name. Defaulting to package name Qt6QuickControls2MacOSStyleImpl. Consider re-arranging the project structure to ensure the target exists by this point. Call Stack (most recent call first): cmake/QtFindPackageHelpers.cmake:601 (qt_internal_get_package_name_of_target) cmake/QtTargetHelpers.cmake:240 (qt_register_target_dependencies) cmake/QtPluginHelpers.cmake:285 (qt_internal_extend_target) src/qml/Qt6QmlBuildInternals.cmake:216 (qt_internal_add_plugin) src/quickcontrols/macos/CMakeLists.txt:42 (qt_internal_add_qml_module) Pick-to: 6.7 Change-Id: I8759f21ee463765486908e49e996004f3b3e618c Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* | | | | | Support moving sections (row and column) in quick table viewSanthosh Kumar2024-05-211-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support in quick table view to reorder rows and columns. The properties 'movableColumns' and 'movableRows' enable the header view to reorder columns and rows, which are disabled by default. These properties allow the user to drag and drop sections for the row and column reordering. It is to be noted that these properties apply only to the header view (HorizontalHeaderView and VerticalHeaderView) and do not apply to the TableView directly. The change in the header view will be synced to the table view by setting the corresponding view to the syncView property in the header view. The TableView can also explicitly reorder columns and rows through the public API moveColumn() and moveRow(). Task-number: QTBUG-100440 Change-Id: I320b91c5541836fa0c885f75c59dcde3608cf3c2 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | | | Doc: import Basic style in customization snippetsMitch Curtis2024-05-2041-45/+45
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that the user won't inadvertently base the customizations on top of the native styles, but also saves adding the extra code that using QtQuick.Templates would require. The first sentence of the section already states that the Basic style is in use. Fixes: QTBUG-125228 Pick-to: 6.5 6.7 Change-Id: I191f1664ab0dcf190e4825b98e7ec12f00de307f Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | | ComboBox: fix popup palette inheritanceMitch Curtis2024-05-082-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 54a2a35f17d5e5d1793af63b76993a583e10ab41 fixed the theme/accent/primary inheritance of the Material and Universal style's ComboBox popups. This patch makes an equivalent fix for styles that use palettes. Now the Basic and Fusion ComboBox popups will have the correct colors in both light and dark modes. Fixes: QTBUG-124474 Pick-to: 6.5 6.7 Change-Id: I3e3fcdc9d6fe75f195cc4f4707eac6d30413121f Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | | Fix test compilation issues with QtLite configurationJari Helaakoski2024-04-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now developer build tests compile, but some are not working. Functional fix will come later via separate tasks. Task-number: QTBUG-122999 Change-Id: I0a0dfcf7affb73f928b8be62b3576a6a51658488 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | | | | Material: fix warning in Popup during test runVladimir Belyavsky2024-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix warning in tst_controls::Material::Popup::test_size(): "qrc:/qt-project.org/imports/QtQuick/Controls/Material/Popup.qml:42: TypeError: Cannot read property 'radius' of null" Fixes: QTBUG-124622 Change-Id: I26c90ff18b081d2c217b4eed143d576ac6c61eab Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* | | | | Document all steps for subclassing QQuickAttachedPropertyPropagatorMitch Curtis2024-04-231-0/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The process for exposing a C++ type as an attached type in QML is explained in the link at the top of the detailed description, but it could be missed, in which case the list below it would be missing important information. Pick-to: 6.5 6.7 Change-Id: Ied70de5f37acec338042541809097d352e03604b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | Fusion: Revert work-around for TabButton's y property not updatingOlivier De Cannière2024-04-181-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QTBUG-108807 described how the first button of a TabBar wouldn't update its y property on the Fusion style. This is because the binding would get removed. With the underlying issue (QTBUG-120033) now fixed by the previous commit, 3f6111588e0ab549607ae2eddb9880a87f34f022 which worked around the issue can be reverted. Pick-to: 6.7 6.5 Change-Id: I95687c8718b08b69897f4671e100fa4b9e61624f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | Fix attached property propagation through ListView with BehaviorMitch Curtis2024-04-171-11/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user had code like this: ApplicationWindow { // ... Material.theme: Material.Dark // ... ListView { // ... header: Text { Behavior on Material.elevation {} The meta type that QQuickAttachedPropertyPropagator saw when looking for the attached parent of the Text item was e.g. QQuickMaterialStyle_QML_125. However, QQmlMetaType::attachedPropertiesFunc only has attached property data for QQuickMaterialStyle (i.e. attached property types created from C++), and so it would never find the attached Material object on the parent window and would fall back to the engine's. Fix it by finding the first C++ meta object, which works even for attached types created in QML. Fixes: QTBUG-122783 Pick-to: 6.5 6.7 Change-Id: Ifd1b887b514ade4f320ace8a033d54cd16dbee1e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | Doc: Replace deprecated Qt Graphical Effects with the MultiEffect typeAndreas Eliasson2024-04-161-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt Graphical Effects was deprecated in Qt 6 and replaced with the MultiEffect type. This patch replaces the DropShadow type with the MultiEffect type. Fixes: QTBUG-124428 Pick-to: 6.7 6.6 6.5 Change-Id: Idb74a16d86bd779733bf286ab8ecdcd9a72c9e02 Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
* | | | Make inactive gradient duller colored for checked Switch in Fusion styleØystein Heskestad2024-04-161-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change it was hard to tell the state of the Switch in an inactive window using Fusion style in light mode. Make the gradient retain the color, but semi-transparent when inactive. This makes it darker if in DarkMode and paler if not. Fixes: QTBUG-123528 Change-Id: I14496519445fde4d4744002a59d07ed7b50252fd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | Remove native style customization warnings for ItemDelegateMitch Curtis2024-04-154-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has no native visuals so customizing it is fine. Task-number: QTBUG-123773 Pick-to: 6.5 6.7 Change-Id: Iebac1231b096dbb5f9cde1d79ccda59688b25f09 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | | iOS: fix warnings in Slider in case of null handleVladimir Belyavsky2024-04-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix warnings, such as "TypeError: Cannot read property 'width' of null" in case when the handle is null Fixes: QTBUG-124290 Pick-to: 6.7 Change-Id: I7916e7e82e4b49e1e13fc484c81e451d384aa812 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | iOS: fix warnings in RangeSlider in case of null handleVladimir Belyavsky2024-04-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix warnings, such as "TypeError: Cannot read property 'width' of null" in case when the handle is null Fixes: QTBUG-124275 Pick-to: 6.7 Change-Id: I40aebcfc57c959bc48c7bec6a362fc060f428b1b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | SpinBox: fix warnings with Windows native styleVladimir Belyavsky2024-04-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix warnings, such as "TypeError: Cannot read property 'width' of null" that occurred during tst_controls::Windows::SpinBox test run Fixes: QTBUG-124201 Pick-to: 6.7 Change-Id: Id6d971485391b54f8dbeb487aaee2404abc83e2f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | Imagine: fix warnings in Slider in case of null handleVladimir Belyavsky2024-04-081-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix warnings, such as "TypeError: Cannot read property 'width' of null" in case when the handle is null Fixes: QTBUG-119633 Pick-to: 6.7 Change-Id: Idc3f759ce7983cf37bee5e633d9d83eb4180ac56 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | Imagine: fix warnings in RangeSlider in case of null handleVladimir Belyavsky2024-04-081-6/+9
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Fix warnings, such as "TypeError: Cannot read property 'width' of null" in case when the handle is null Fixes: QTBUG-119572 Pick-to: 6.7 Change-Id: I4156774f98f58a44bb866c84c3a398ed82e9a136 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | SpinBox: fix warnings with macOS native styleVladimir Belyavsky2024-04-041-3/+3
| |/ |/| | | | | | | | | | | | | Fixes: QTBUG-119756 Pick-to: 6.7 Change-Id: I706c8c49a2b2bf2bb1223edd38d011c6f27c61eb Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Materials.impl: Mark dependency on Controls.implFabian Kosmale2024-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | QQuickMaterialPlaceholderText derives from QQuickPlaceholderText, so there is a dependency to Controls.impl on the C++ level. Make that one explicit, so that QDS can resolve the type in its code model. Fixes: QTBUG-123594 Pick-to: 6.5 6.7 Change-Id: I890f683af65daf501f93b4224897568ef269837d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Basic.impl: Add dependency entry for QtQuickFabian Kosmale2024-03-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Types of the module derive from QQuickItem, so it should make the dependency explicit. This will help the QDS code model to find the connection to the correct types. Pick-to: 6.7 6.5 Change-Id: I59137d2d8d5b87f549a7d8dfc74283d21e38c93f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Correct doc snippet licenseLucie Gérard2024-03-22129-129/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | All file under doc/snippet should be license as Documentation snippets and according to QUIP-18 [1] thi is 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: Iee9bc9b8c2a81695c5825a36768b36db2726bd35 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* | QQuickIOSTheme: Replace macOS/iOS condition with Q_OS_APPLETor Arne Vestbø2024-03-201-1/+1
| | | | | | | | | | | | Change-Id: I972dfc4c0dff8c204b475e513ca42936030cb639 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
* | Dial: fix handle position in the Fusion styleMitch Curtis2024-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | The handle position has slightly changed, possibly as a result of the recent improvements in e.g. d93ca833f65893653071d7ba33fd129fe3db53dc. Account for that. Fixes: QTBUG-123394 Pick-to: 6.6 6.7 Change-Id: I30155a9aac286e02b5f91e09f48392b3156c18dc Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
* | Warn about missing default rolesSami Varanka2024-03-181-0/+4
|/ | | | | | | | | | | When a user implements their own model and view depends on some default role, warn the user about. This warning gives a hint on how to fix that error. It is the user's responsibility to implement model correctly. Fixes: QTBUG-119765 Pick-to: 6.5 6.6 6.7 Change-Id: I96a3b653275f37ab24c450c18ec91430a6aad379 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Use document imports of QtQuick.Controls.impl, not qmldir-importsMitch Curtis2024-03-156-2/+65
| | | | | | | | | | | | | | | | qmldir-imports are transitive, meaning that we were exposing all types from QtQuick.Controls.impl each time QtQuick.Controls was imported. This patch removes these transitive qmldir-imports by moving the foreign type declarations for QQuickOverlay and QQuickSplitHandleAttached into the Basic style (which is always imported by every style as a final fallback). Task-number: QTBUG-104768 Task-number: QTBUG-123103 Change-Id: Ia0ff778a88a38bb872730e055631dc924456d7be Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Look up Segoe UI presence without triggering font aliasesTor Arne Vestbø2024-03-141-3/+4
| | | | | | Pick-to: 6.7 Change-Id: I5f594adda733336e1209bdca011da9b2e5709a00 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* doc: Update Controls Text Editor example docsShawn Rutledge2024-03-121-1/+1
| | | | | | | | We also move ScrollBar to make explanation easier. Pick-to: 6.7 6.7.0 Change-Id: If65de335f840382b5e236d8a04db382b0b7aee6a Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Material: remove ComboBox's insetsMitch Curtis2024-03-071-3/+0
| | | | | | | | | | | | | | | These were probably necessary when it had drop shadows, but it no longer does. Doing this makes it the same height as TextField. [ChangeLog][Controls][Material] ComboBox's insets were removed. This may cause visual changes to UIs. Task-number: QTBUG-120067 Pick-to: 6.6 6.7 Change-Id: Ia66f254eb5d556b7f629488a8f74e2417d7d7489 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Material: fix floating placeholder text x positionMitch Curtis2024-03-072-2/+4
| | | | | | | | | | Don't set it to control.leftPadding, because we don't want it to change if the user changes leftPadding. Fixes: QTBUG-120149 Pick-to: 6.5 6.6 6.7 Change-Id: I67bbc22192fef386fe088398b67d3eb0a10421ba Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Material: animate RadioButton indicatorMitch Curtis2024-03-071-4/+27
| | | | | | | | | | | This makes it match the specs: https://m3.material.io/components/radio-button/guidelines#eba97636-1dd9-4e81-a1a6-20b8123d1b83 Fixes: QTBUG-113532 Pick-to: 6.5 6.6 6.7 Change-Id: I266a8f8c6ace780650b26f72fa1bd7ea8c933507 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* QQuickAttachedPropertyPropagator: fix child window propagationMitch Curtis2024-02-212-10/+47
| | | | | | | | | | After the recent changes to window code, a child window's transient parent is not available as early as it used to be. Account for this by listening to changes in the window's parent as we do for items. Fixes: QTBUG-122008 Change-Id: I2cd93e3c487e7ce4567e740886ef65a756c1350f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Material: fix assertion failure when quickly changing TextField's focusMitch Curtis2024-02-151-1/+12
| | | | | | | | | | | | Focus changes can happen before the focus in/out animations finish. In that case, stop the animation, which will eventually delete it. Until it's deleted, we clear the pointer so that our asserts don't fail for the wrong reason. Fixes: QTBUG-118889 Pick-to: 6.6 6.7 Change-Id: I6398805c006dadac71e168126c7a387357d5d2b0 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Dialogs: Depend on controls styles in QuickDialogs2QuickImplUlf Hermann2024-02-0921-54/+102
| | | | | | | | | | | This forces them to be built before, making their qmltypes available to the subsequent build steps. Having the styles as linkable backing libraries also makes their C++ types available to qmlsc's direct mode. Pick-to: 6.7 6.6 Task-number: QTBUG-121643 Change-Id: I24688b325d27f16e7cc77219cf481b3b30ca52a3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>