Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.2
- import Sailfish.Silica 1.0
- ListItem {
- id: listItem
- menu: ContextMenu {
- // context menu items
- }
- contentHeight: Theme.itemSizeMedium // minimum size for touch interaction
- ListView.onRemove: animateRemoval(listItem) // animate item removal
- Label {
- id: label
- text: qsTr("Item label")
- color: listItem.highlighted ? Theme.highlightColor : Theme.primaryColor
- anchors {
- left: parent.left; leftMargin: Theme.horizontalPageMargin
- right: parent.right; leftMargin: Theme.horizontalPageMargin
- }
- }
- Label {
- text: "Item description"
- font.pixelSize: Theme.fontSizeSmall
- color: listItem.highlighted ? Theme.highlightColor : Theme.secondaryColor
- anchors {
- top: label.bottom
- left: label.left
- right: label.right
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement