mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Render scalable favicons at a fixed size
This commit is contained in:
parent
e52e35df8c
commit
5fc43e7018
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ Window {
|
||||||
source: webview.icon;
|
source: webview.icon;
|
||||||
x: (parent.height - height) / 2
|
x: (parent.height - height) / 2
|
||||||
y: (parent.width - width) / 2
|
y: (parent.width - width) / 2
|
||||||
|
sourceSize: Qt.size(width, height);
|
||||||
verticalAlignment: Image.AlignVCenter;
|
verticalAlignment: Image.AlignVCenter;
|
||||||
horizontalAlignment: Image.AlignHCenter
|
horizontalAlignment: Image.AlignHCenter
|
||||||
onSourceChanged: console.log("Icon url: " + source)
|
onSourceChanged: console.log("Icon url: " + source)
|
||||||
|
|
Loading…
Reference in a new issue