aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmltableinstancemodel.cpp
diff options
context:
space:
mode:
authorMohammadHossein Qanbari <mohammad.qanbari@qt.io>2024-12-06 12:15:40 +0100
committerMohammadHossein Qanbari <mohammad.qanbari@qt.io>2025-03-06 03:08:26 +0100
commit9601b74dabed53e93a7a5144d4c1fadb7876db18 (patch)
tree0b5f05771108c78c91e644e80d02601ec8b8c672 /src/qmlmodels/qqmltableinstancemodel.cpp
parent79947ea6d5c104f3253f6fbd7ef7244c4015acac (diff)
QuickControls: Add vertical and horizontal header view delegates
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 <mitch.curtis@qt.io>
Diffstat (limited to 'src/qmlmodels/qqmltableinstancemodel.cpp')
-rw-r--r--src/qmlmodels/qqmltableinstancemodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmltableinstancemodel.cpp b/src/qmlmodels/qqmltableinstancemodel.cpp
index 5eb28db3f2..5bb444637e 100644
--- a/src/qmlmodels/qqmltableinstancemodel.cpp
+++ b/src/qmlmodels/qqmltableinstancemodel.cpp
@@ -407,6 +407,11 @@ bool QQmlTableInstanceModel::setRequiredProperty(int index, const QString &name,
return wasInRequired;
}
+QQmlDelegateModelItem *QQmlTableInstanceModel::getModelItem(int index)
+{
+ return m_modelItems.value(index, nullptr);
+}
+
void QQmlTableInstanceModel::deleteIncubationTaskLater(QQmlIncubator *incubationTask)
{
// We often need to post-delete incubation tasks, since we cannot