Try a special component as tooltip: works
This commit is contained in:
parent
ea41410004
commit
98d432ebca
@ -107,20 +107,6 @@ PlasmaComponents.Page {
|
|||||||
subText: "A mean-looking grouper swam by."
|
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 {
|
Image {
|
||||||
objectName: "bridgeimage"
|
objectName: "bridgeimage"
|
||||||
height: _h*2
|
height: _h*2
|
||||||
@ -134,6 +120,25 @@ PlasmaComponents.Page {
|
|||||||
subText: "Waalbrug."
|
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."
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user