diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-08 14:26:51 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-09 19:26:18 +0000 |
commit | 3a5bd3d4e564a1b3cd56ed2cfb5258e4ded763b6 (patch) | |
tree | caf02741b70b3a1c44277e74fc9ce7d1aa924620 /src/imports/controls/ComboBox.qml | |
parent | d1d3438f59a96f2263076d41d82a99e7269b4159 (diff) |
Rename Panel to Popup
Popup is a more descriptive name. Furthermore, this name change opens
the door for another type called Pane. It gives the appropriate
background color for the current style & theme.
Change-Id: Idb91d37e807f62e870b50f0b656e84ee2d43a9fb
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/ComboBox.qml')
-rw-r--r-- | src/imports/controls/ComboBox.qml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/imports/controls/ComboBox.qml b/src/imports/controls/ComboBox.qml index 7f2adcb0..3d4e5ed5 100644 --- a/src/imports/controls/ComboBox.qml +++ b/src/imports/controls/ComboBox.qml @@ -85,7 +85,7 @@ T.ComboBox { width: parent.width height: parent.height opacity: control.enabled ? 1.0 : 0.2 - color: control.pressed || panel.visible ? "#585A5C" : "#353637" + color: control.pressed || popup.visible ? "#585A5C" : "#353637" } Image { @@ -96,11 +96,10 @@ T.ComboBox { } //! [background] - //! [panel] - panel: T.Panel { - id: popup + //! [popup] + popup: T.Popup { contentItem: Rectangle { - // TODO: Panel::anchors + // TODO: Popup::anchors readonly property var above: popup.visible ? control.mapToItem(null, 0, -height + 1) : Qt.point(0, 0) readonly property var below: popup.visible ? control.mapToItem(null, 0, control.height - 1) : Qt.point(0, 0) @@ -129,5 +128,5 @@ T.ComboBox { } } } - //! [panel] + //! [popup] } |