respect the hint-bar-stretch hint
This commit is contained in:
parent
7d2b4427ba
commit
83946f2b66
@ -99,9 +99,18 @@ Item {
|
|||||||
interval: 0
|
interval: 0
|
||||||
running: false
|
running: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
if (barFrameSvg.hasElement("hint-bar-stretch")) {
|
||||||
|
barFrameSvg.resizeFrame(Qt.size(barPixmapItem.width, barPixmapItem.height))
|
||||||
|
} else {
|
||||||
barFrameSvg.resizeFrame(Qt.size(Math.floor(contents.height/1.6), contents.height))
|
barFrameSvg.resizeFrame(Qt.size(Math.floor(contents.height/1.6), contents.height))
|
||||||
|
}
|
||||||
barPixmapItem.pixmap = barFrameSvg.framePixmap()
|
barPixmapItem.pixmap = barFrameSvg.framePixmap()
|
||||||
|
|
||||||
|
if (backgroundFrameSvg.hasElement("hint-bar-stretch")) {
|
||||||
|
backgroundFrameSvg.resizeFrame(Qt.size(backgroundPixmapItem.width, backgroundPixmapItem.height))
|
||||||
|
} else {
|
||||||
backgroundFrameSvg.resizeFrame(Qt.size(Math.floor(contents.height/1.6), contents.height))
|
backgroundFrameSvg.resizeFrame(Qt.size(Math.floor(contents.height/1.6), contents.height))
|
||||||
|
}
|
||||||
backgroundPixmapItem.pixmap = backgroundFrameSvg.framePixmap()
|
backgroundPixmapItem.pixmap = backgroundFrameSvg.framePixmap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user