aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquickabstractbutton_p_p.h
Commit message (Collapse)AuthorAgeFilesLines
* AbstractButton: Add click() and animateClick()Mitch Curtis2024-05-301-0/+1
| | | | | | | | | | | [ChangeLog][Controls][AbstractButton] Added click() and animateClick() functions to allow programmatically clicking a button with or without visual changes. Fixes: QTBUG-96784 Task-number: QTBUG-69558 Change-Id: I53cdccd90e2e4b831105e90e2541cbc674760c0b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Set default layout size policies for quick itemsSanthosh Kumar2024-02-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The quick items are initiliazed with default layout size policy. This size policy can be either Preferred or Fixed and it can vary depending on controls and its orientation. [ChangeLog][QtQuick][Item Behavior Changes] The QtQuick items now set their default size policy and it would be effective when used within QtQuick Layouts. The following types now behave differently by default when used in layouts: Button, CheckBox, ComboBox, Dial, DialogButtonBox, Frame, Flickable, GridView, GroupBox, HorizontalHeaderView, ListView, Page, Pane, PathView, ProgressBar, RadioButton, RangeSlider, RoundButton, ScrollBar, ScrollIndicator, ScrollView, Slider, SpinBox, SplitView, StackView, SwipeView, Switch, TabBar, TabButton, TableView, TextArea, TextEdit, TextField, TextInput, ToolButton, TreeView, Tumbler, VerticalHeaderView. Task-number: QTBUG-117597 Pick-to: 6.7 Change-Id: I41fe73a2e466e396f26604a14d1f15b8b42df338 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Remove the use of Q_QUICKTEMPLATES2_PRIVATE_EXPORTAlexey Edelev2024-01-091-1/+1
| | | | | | Task-number: QTBUG-117983 Change-Id: Ie8e0cf7d4b891e97f5624401da78a1b6e8eb9fd0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Include what you need: <QPointer>Marc Mutz2023-10-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | All these TUs relied on transitive includes of qpointer.h, maybe to a large extent via qevent.h, though, given that qevent.h is more or less the only public QtBase header that includes qpointer.h, something else seems to be at play here. Said qevent.h actually needs QPointer in-name-only, so a forward declaration would suffice. Prepare for qevent.h dropping the include. The algorithm I used was: If the TU mentions 'passiveGrabbers', the name of the QEvent function that returns QPointers, and the TU doesn't have qpointer.h included explicitly, include it. That may produce False Positives, but better safe than sorry. Otherwise, in src/, add an include to all source and header files which mention QPointer. Exception: if foo.h of a foo.cpp already includes it, don't include again. Task-number: QTBUG-117670 Change-Id: I9b98cda524a0e6a61be7805edda708916bb2bc2b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* MenuBarItem: open menu on mouse press, touch releaseMitch Curtis2023-02-131-0/+1
| | | | | | | | | | | | | | | | | Windows, macOS and Linux all open menus on mouse press. Android opens overflow menus on touch release. iOS does too, though it seems to also open after a press is held for long enough. Rather than simply connect the clicked() signal to the triggered() signal, we need to instead override some event-handling functions to get better control over when triggered() is emitted. Task-number: QTBUG-79554 Pick-to: 6.5 6.4 Change-Id: I9dc8dadad9dc6dac52652986306d0e66a2532fb8 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Remove "2" from Qt Quick Controls directoriesMitch Curtis2022-12-011-0/+121
Qt Quick Controls 2 was named that way because it was a follow-up to Qt Quick Controls 1.x. Now that Qt Quick Controls 1 is no longer supported, we don't need to have "2" in the name. Work on this was already started for the documentation in 1abdfe5d5a052f2298b7bf657513dfa7e0c66a56. By doing this renaming a few weeks before feature freeze, it won't affect the release but still results in as little time possible spent manually fixing conflicts in cherry-picks from non-LTS releases as a result of the renaming. This patch does the following: - Renames directories. - Adapts CMakeLists.txt and other files to account for the new paths. A follow-up patch will handle documentation. It does not touch library names or other user-facing stuff, as that will have to be done in Qt 7. Task-number: QTBUG-95413 Change-Id: I170d8db19033ee71e495ff0c5c1a517a41ed7634 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>