mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
Clipping and mipping!
This commit is contained in:
parent
984a5aea2c
commit
2fa1bd25a8
3 changed files with 7 additions and 2 deletions
|
@ -99,6 +99,7 @@ Rectangle {
|
|||
width: height;
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
fillMode: Image.PreserveAspectFit;
|
||||
mipmap: true;
|
||||
}
|
||||
|
||||
// Title Bar text
|
||||
|
|
|
@ -76,6 +76,7 @@ Rectangle {
|
|||
width: height;
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
fillMode: Image.PreserveAspectFit;
|
||||
mipmap: true;
|
||||
}
|
||||
|
||||
// Title Bar text
|
||||
|
@ -209,6 +210,7 @@ Rectangle {
|
|||
}
|
||||
ListView {
|
||||
id: inventoryContentsList;
|
||||
clip: true;
|
||||
// Anchors
|
||||
anchors.top: inventoryContentsLabel.bottom;
|
||||
anchors.topMargin: 8;
|
||||
|
|
|
@ -158,6 +158,7 @@ Rectangle {
|
|||
|
||||
GridView {
|
||||
id: securityImageGrid;
|
||||
clip: true;
|
||||
// Anchors
|
||||
anchors.fill: parent;
|
||||
currentIndex: -1;
|
||||
|
@ -170,12 +171,13 @@ Rectangle {
|
|||
Item {
|
||||
anchors.fill: parent;
|
||||
Image {
|
||||
width: parent.width - 20;
|
||||
height: parent.height - 20;
|
||||
width: parent.width - 8;
|
||||
height: parent.height - 8;
|
||||
source: sourcePath;
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
fillMode: Image.PreserveAspectFit;
|
||||
mipmap: true;
|
||||
}
|
||||
}
|
||||
MouseArea {
|
||||
|
|
Loading…
Reference in a new issue