Try a special component as tooltip: works

This commit is contained in:
Sebastian Kügler 2013-04-09 03:42:41 +02:00
parent ea41410004
commit 98d432ebca

View File

@ -107,20 +107,6 @@ PlasmaComponents.Page {
subText: "A mean-looking grouper swam by."
}
}
Image {
objectName: "surfboardimage"
height: _h*2
width: height
fillMode: Image.PreserveAspectFit
source: "../images/surfboard.jpg"
PlasmaCore.ToolTip {
anchors.fill: parent
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 {
objectName: "bridgeimage"
height: _h*2
@ -134,6 +120,25 @@ PlasmaComponents.Page {
subText: "Waalbrug."
}
}
Image {
objectName: "surfboardimage"
height: _h*2
width: height
fillMode: Image.PreserveAspectFit
source: "../images/surfboard.jpg"
PlasmaCore.ToolTip {
anchors.fill: parent
image: parent.source
mainComponent: Component {
PlasmaComponents.Label {
text: "Nijmegen North Beach"
anchors.centerIn: parent
}
}
//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."
}
}
}
}
}