diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-03-10 14:39:49 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-07-31 14:01:58 +0000 |
commit | 846a908b73ed3392c3f80a5c425c9ccf3c1e6a04 (patch) | |
tree | 6dcfe7a1623e04499db860dd22a4060573d5a975 /tests/benchmarks/creationtime | |
parent | c065436755aedcb50bca7f5c1977fc8f5dc6b39f (diff) |
Add Imagine style
The Imagine style is based on image assets. The style comes with a
default set of images, but the images can be easily changed by
providing a directory with images using a predefined naming convention.
[ChangeLog][Controls] Added the Imagine style, which is based on
image assets that can be provided using a predefined naming convention.
Task-number: QTPM-517
Change-Id: I550d7dac9a9686d60bec15655ac92dea9f36149c
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/benchmarks/creationtime')
-rw-r--r-- | tests/benchmarks/creationtime/tst_creationtime.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/benchmarks/creationtime/tst_creationtime.cpp b/tests/benchmarks/creationtime/tst_creationtime.cpp index 4909f080..25533e95 100644 --- a/tests/benchmarks/creationtime/tst_creationtime.cpp +++ b/tests/benchmarks/creationtime/tst_creationtime.cpp @@ -47,6 +47,9 @@ private slots: void controls(); void controls_data(); + void imagine(); + void imagine_data(); + void material(); void material_data(); @@ -125,6 +128,18 @@ void tst_CreationTime::controls_data() addTestRows(&engine, "controls", "QtQuick/Controls.2", QStringList() << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator"); } +void tst_CreationTime::imagine() +{ + QFETCH(QUrl, url); + doBenchmark(&engine, url); +} + +void tst_CreationTime::imagine_data() +{ + QTest::addColumn<QUrl>("url"); + addTestRows(&engine, "controls/imagine", "QtQuick/Controls.2/Imagine"); +} + void tst_CreationTime::material() { QFETCH(QUrl, url); |