Add icons and images to the tooltip test

Change-Id: Idbcac97bb3e5b8e2349d384c94734a312f177954
This commit is contained in:
David Edmundson 2015-02-25 11:23:40 +01:00
parent ba9f6ff03c
commit 8022adb399

View File

@ -85,6 +85,44 @@ Rectangle {
} }
} }
PlasmaCore.ToolTipArea {
width: 300
height: 50
icon: "document-edit"
mainText: "A title"
subText: "A subtext"
Rectangle {
color: "red"
anchors.fill: parent
}
Text {
anchors.fill: parent
text: "with icon"
}
}
PlasmaCore.ToolTipArea {
width: 300
height: 50
image: "/usr/share/icons/oxygen/128x128/devices/multimedia-player.png"
mainText: "A title"
subText: "A subtext"
Rectangle {
color: "red"
anchors.fill: parent
}
Text {
anchors.fill: parent
text: "with image"
}
}
} }
} }