Add icons and images to the tooltip test
Change-Id: Idbcac97bb3e5b8e2349d384c94734a312f177954
This commit is contained in:
parent
ba9f6ff03c
commit
8022adb399
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user