diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-26 15:41:29 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-28 12:57:52 +0000 |
commit | 99ecd1625856205de684e909794101f8fe861dda (patch) | |
tree | 76927abb1a423bb89c696d6a3019061c231a2a16 /tests/auto | |
parent | ae0bbb15d39da230a7abd2602bd37c6140a305c6 (diff) |
ComboBox: lazy load the popup content
On my Linux box, the creation time of ComboBox { model: 100 } goes
down from ~4ms to 0.9ms.
Change-Id: I8c3d8233d961c0b895581ba347d6789063a587a3
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/controls/data/tst_combobox.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml index d4b36b17..55ac3e8d 100644 --- a/tests/auto/controls/data/tst_combobox.qml +++ b/tests/auto/controls/data/tst_combobox.qml @@ -69,7 +69,7 @@ TestCase { id: comboBox ComboBox { delegate: ItemDelegate { - width: parent.width + width: popup.width } } } |