Clipping and mipping!

This commit is contained in:
Zach Fox 2017-08-15 16:41:04 -07:00
parent 984a5aea2c
commit 2fa1bd25a8
3 changed files with 7 additions and 2 deletions

View file

@ -99,6 +99,7 @@ Rectangle {
width: height;
anchors.verticalCenter: parent.verticalCenter;
fillMode: Image.PreserveAspectFit;
mipmap: true;
}
// Title Bar text

View file

@ -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;

View file

@ -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 {