[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-mobile/mart/apiReview] components/mobilecomponents/qml: better docs
From: Marco Martin <notmart () gmail ! com>
Date: 2016-01-29 12:28:37
Message-ID: E1aP8AH-0003EX-Fd () scm ! kde ! org
[Download RAW message or body]
Git commit e31b76930f8d48ad44421cb7087e3ecebdca16d9 by Marco Martin.
Committed on 29/01/2016 at 11:39.
Pushed by mart into branch 'mart/apiReview'.
better docs
M +2 -3 components/mobilecomponents/qml/AbstractListItem.qml
M +3 -4 components/mobilecomponents/qml/ListItemWithActions.qml
http://commits.kde.org/plasma-mobile/e31b76930f8d48ad44421cb7087e3ecebdca16=
d9
diff --git a/components/mobilecomponents/qml/AbstractListItem.qml b/compone=
nts/mobilecomponents/qml/AbstractListItem.qml
index 5abe5f4..d82d384 100644
--- a/components/mobilecomponents/qml/AbstractListItem.qml
+++ b/components/mobilecomponents/qml/AbstractListItem.qml
@@ -80,10 +80,9 @@ Item {
*/
property alias containsMouse: itemMouse.containsMouse
=
- width: parent ? parent.width : childrenRect.width
- height: paddingItem.childrenRect.height + Units.smallSpacing*2
+ implicitWidth: parent ? parent.width : childrenRect.width
=
- property int implicitHeight: paddingItem.childrenRect.height + Units.s=
mallSpacing*2
+ implicitHeight: paddingItem.childrenRect.height + Units.smallSpacing*2
=
=
opacity: enabled ? 1 : 0.6
diff --git a/components/mobilecomponents/qml/ListItemWithActions.qml b/comp=
onents/mobilecomponents/qml/ListItemWithActions.qml
index 911d279..7866dc9 100644
--- a/components/mobilecomponents/qml/ListItemWithActions.qml
+++ b/components/mobilecomponents/qml/ListItemWithActions.qml
@@ -87,10 +87,9 @@ Item {
=
/**
* type: list<Action>
- * Defines the actions for the page: at most 4 buttons will
- * contain the actions at the bottom of the page, if the main
- * item of the page is a Flickable or a ScrllArea, it will
- * control the visibility of the actions.
+ * Defines the actions for the list item: at most 4 buttons will
+ * contain the actions for the item, that can be revealed by
+ * sliding away the list item.
*/
property list<Action> actions
=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic