aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmldelegatecomponent.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add security header for src/qmlmodelsFabian Kosmale2025-09-161-0/+1
| | | | | | | | | | | | As we assume that all QML comes from trusted sources, everything remains at the default "signicant" security level. The exception are the module headers which only include other headers and add a few defines. QUIP: 23 Fixes: QTBUG-136203 Pick-to: 6.10 6.9 6.8 Change-Id: Ib1a2abbb94dbb25420f03e01a2b444f89517a902 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Move DelegateChooser from Qt.labs.models to QtQml.ModelsOliver Eftevaag2024-11-191-0/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I assume the intention was to eventually move it out of Qt.labs.models, once we've had a second look at the API, and are happy enough with it. The DelegateChooser uses the adaptor model's `value` function, to fetch data from the model, which it then uses for finding a suitable DelegateChoice to use. (Based on the DelegateChoice::roleValue property). Since the adaptor model's `value` function takes a QString, as the role to read data from, it won't make sense to change the datatype of DelegateChooser::role. The rest of the API makes sense too, in my opinion, and I see no reason to change it. Add a simple test in tst_qqmldelegatemodel, since QQmlDelegateModel is using the DelegateChooser in QQmlDelegateModelPrivate::resolveDelegate. [ChangeLog][QtQmlModels][Important Behavior Change] DelegateChooser has been moved from Qt.labs.models to QtQml.Models. Fixes: QTBUG-98101 Task-number: QTBUG-100069 Change-Id: I76ea58f57475b6a069517b5030e2ba3ac47007d2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Models: Move labs classes into src/imports/labsmodelsUlf Hermann2019-10-151-321/+0
| | | | | | | We want to have only one import URI per library. Change-Id: I8be524cf361b12bcb423c9efccd4e047ae3d8d0e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Liang Qi2019-09-121-13/+0
| | | | | | | | | | | | Conflicts: src/qml/jsruntime/qv4engine.cpp src/quick/handlers/qquicktaphandler.cpp src/quick/items/qquicktableview.cpp Done-With: Richard Moe Gustavsen <richard.gustavsen@qt.io> Done-With: Ulf Hermann <ulf.hermann@qt.io> Done-With: Shawn Rutledge <shawn.rutledge@qt.io> Change-Id: If9558a33f01693ce96420c094e0b57dfff0626cd
* Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-06-141-1/+35
| | | | | | | Conflicts: tests/auto/qml/qjsengine/tst_qjsengine.cpp Change-Id: I34df194046a91ee8a076ce28022eb99d68e7f362
* Move model types into their own libraryUlf Hermann2019-05-021-0/+300
The model types are not part of the core QML runtime and should only be loaded if you explicitly import them. We cannot enforce that in Qt5 as some of them are available from the QtQml import, but we can change it in Qt6. Change-Id: I1e49e84d748e352537ec2d4af901c034c91d038f Reviewed-by: Erik Verbruggen <erik.verbruggen@me.com>