summaryrefslogtreecommitdiff
path: root/src/controls/ComboBox.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-09-23 15:53:49 +0200
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-09-24 13:53:29 +0200
commit1a1a19f74e7f55388da043ae1e2e34e334d5f740 (patch)
tree6705740218c6ba15c61cf8ebd45a2ec4bf569c3c /src/controls/ComboBox.qml
parent094528f9206d3f03220d0bc67951c7034e02dca6 (diff)
downloadqtquickcontrols-1a1a19f74e7f55388da043ae1e2e34e334d5f740.tar.gz
EditMenu: let menu property be a component to lazy load it
Since all input fields have a menu assigned to it by default (which in most cases never will be shown), it should be an optimization to await creating it until needed. Change-Id: I5777bbdae42103981e9b2f5ddfdfd763acea07ae Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/ComboBox.qml')
-rw-r--r--src/controls/ComboBox.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 1dba6b7e..55161d39 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -222,16 +222,15 @@ Control {
property alias validator: input.validator
/*!
- \qmlproperty Menu ComboBox::menu
\since QtQuick.Controls 1.3
- This property contains the edit menu for working
+ This property contains the edit \l Menu for working
with text selection. Set it to \c null if no menu
is wanted.
\note The menu is only in use when \l editable is \c true
*/
- property Menu menu: input.editMenu.defaultMenu
+ property Component menu: input.editMenu.defaultMenu
/*!
\qmlproperty bool ComboBox::acceptableInput