aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-08-19 14:29:17 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-02 17:53:22 +0000
commite5ca1ed5fd43796dd7623663f4aace4181899a0f (patch)
tree14bc5c82f7b0010c93cd57cb2b0764c4a373b64c /tests
parent58c7a36f5cf5ec70433e644522e8afe4509a1eb1 (diff)
Material: add TreeViewDelegate.qml
Add a version of TreeViewDelegate.qml to the Material style, that looks more at home for that style (rather than using the one in the Basic style). This version is using the arrow-indicator from the Material style as expand/collapse indicator, and makes the height of each row match the height of a normal Material button. Change-Id: I084532ca6e527593e5711d66aa53f240f0356d99 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 55fab9a73e720a84d0f0a86cc4175f34a4573188) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp2
-rw-r--r--tests/benchmarks/quickcontrols2/objectcount/tst_objectcount.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp b/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp
index 60e55506fb..660be4ad4a 100644
--- a/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp
+++ b/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp
@@ -125,7 +125,7 @@ void tst_CreationTime::material_data()
QTest::addColumn<QUrl>("url");
addTestRowForEachControl(styleHelper.engine.data(), QQC2_IMPORT_PATH, "material", "QtQuick/Controls/Material",
QStringList() << "ApplicationWindow" << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator"
- << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
+ << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate" << "TreeViewDelegate");
}
void tst_CreationTime::universal()
diff --git a/tests/benchmarks/quickcontrols2/objectcount/tst_objectcount.cpp b/tests/benchmarks/quickcontrols2/objectcount/tst_objectcount.cpp
index c14b341c51..dbda2048b4 100644
--- a/tests/benchmarks/quickcontrols2/objectcount/tst_objectcount.cpp
+++ b/tests/benchmarks/quickcontrols2/objectcount/tst_objectcount.cpp
@@ -72,7 +72,7 @@ static void initTestRows(QQmlEngine *engine)
addTestRowForEachControl(engine, QQC2_IMPORT_PATH, "imagine", "QtQuick/Controls/Imagine");
addTestRowForEachControl(engine, QQC2_IMPORT_PATH, "material", "QtQuick/Controls/Material",
QStringList() << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator"
- << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
+ << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate" << "TreeViewDelegate");
addTestRowForEachControl(engine, QQC2_IMPORT_PATH, "universal", "QtQuick/Controls/Universal",
QStringList() << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator");
}