Add two test images, use them for tooltips
This commit is contained in:
parent
c739f3ae58
commit
c2b868fa56
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
@ -89,19 +89,50 @@ PlasmaComponents.Page {
|
|||||||
text: "ToolTip"
|
text: "ToolTip"
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaCore.IconItem {
|
Row {
|
||||||
source: "akonadi"
|
spacing: _s
|
||||||
width: parent.width
|
PlasmaCore.IconItem {
|
||||||
height: _h*2
|
id: akonadiIcon
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
source: "akonadi"
|
||||||
|
width: height
|
||||||
PlasmaCore.ToolTip {
|
height: _h*2
|
||||||
anchors.fill: parent
|
//anchors.horizontalCenter: parent.horizontalCenter
|
||||||
mainText: "Fish sighted"
|
// Rectangle { color: "orange"; opacity: 0.3; anchors.fill: parent; }
|
||||||
subText: "A mean-looking grouper swam by."
|
PlasmaCore.ToolTip {
|
||||||
|
anchors.fill: parent
|
||||||
|
visualParent: akonadiIcon
|
||||||
|
iconSource: "klipper"
|
||||||
|
mainText: "Fish sighted in the wild, in the wild, a fish was seen."
|
||||||
|
subText: "A mean-looking grouper swam by."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Image {
|
||||||
|
height: _h*2
|
||||||
|
width: height
|
||||||
|
fillMode: Image.PreserveAspectFit
|
||||||
|
source: "../images/surfboard.jpg"
|
||||||
|
PlasmaCore.ToolTip {
|
||||||
|
anchors.fill: parent
|
||||||
|
// visualParent: akonadiIcon
|
||||||
|
image: parent.source
|
||||||
|
mainText: "Surfboard"
|
||||||
|
subText: "A surfboard on the beach. <br />The photo shows the Waal river's north beach, \
|
||||||
|
across the water from Nijmegen, Netherlands. It was taken during the summer festivals a few years back."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Image {
|
||||||
|
height: _h*2
|
||||||
|
width: height
|
||||||
|
fillMode: Image.PreserveAspectFit
|
||||||
|
source: "../images/bridge.jpg"
|
||||||
|
PlasmaCore.ToolTip {
|
||||||
|
anchors.fill: parent
|
||||||
|
// visualParent: akonadiIcon
|
||||||
|
image: parent.source
|
||||||
|
mainText: "Bridge"
|
||||||
|
subText: "Waalbrug."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user