[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/mobile/lib
From: Volker Krause <vkrause () kde ! org>
Date: 2010-11-28 16:12:03
Message-ID: 20101128161203.D1447AC8A5 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1201761 by vkrause:
Make the active action indicator scale correctly.
M +1 -0 ActionMenuContainer.qml
M +7 -3 ActiveActionMenuItemDelegate.qml
--- trunk/KDE/kdepim/mobile/lib/ActionMenuContainer.qml #1201760:1201761
@@ -194,6 +194,7 @@
visible : menuStyle;
spaceAbove : itemModel.spaceAbove;
spaceBelow : itemModel.spaceBelow;
+ actionItemHeight: _topLevel.actionItemHeight
}
onHeightChanged : {
--- trunk/KDE/kdepim/mobile/lib/ActiveActionMenuItemDelegate.qml #1201760:1201761
@@ -26,12 +26,13 @@
property int spaceAbove
property int spaceBelow
+ property int actionItemHeight
onSpaceAboveChanged : {
- lineAbove.height = spaceAbove
+ lineAbove.height = Math.max( spaceAbove, 0 );
}
onSpaceBelowChanged : {
- lineBelow.height = spaceBelow
+ lineBelow.height = Math.max( spaceBelow, 0 );
}
QML.Behavior on y { QML.NumberAnimation { duration : 250; easing.type : Easing.OutQuad } }
@@ -43,11 +44,14 @@
height : 0
}
- QML.Image {
+ QML.BorderImage {
id : active_image
anchors.right : _top.right
anchors.rightMargin : -10
+ height: actionItemHeight
source : "images/activeactionitem.png"
+ border { left: 0; right: 0; top: 20; bottom: 20 }
+ verticalTileMode: QML.BorderImage.Repeat
}
QML.Image {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic