small layout fixes

This commit is contained in:
Marco Martin 2014-10-23 15:06:35 +02:00
parent 2b09246010
commit 4239cf0fae

View file

@ -11,10 +11,7 @@ MouseArea {
PlasmaCore.IconItem { PlasmaCore.IconItem {
id: icon id: icon
anchors { anchors.centerIn: parent
top: root.top
horizontalCenter: root.horizontalCenter
}
width: units.iconSizes.large width: units.iconSizes.large
height: width height: width
source: iconName source: iconName
@ -25,14 +22,14 @@ MouseArea {
anchors { anchors {
top: icon.bottom top: icon.bottom
left: parent.left left: icon.left
right: parent.right right: icon.right
} }
wrapMode: Text.WordWrap
horizontalAlignment: Qt.AlignHCenter horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
font.pixelSize: theme.smallestFont.pointSize
text: name text: name
color: "white" color: "white"
} }