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; width: height;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
fillMode: Image.PreserveAspectFit; fillMode: Image.PreserveAspectFit;
mipmap: true;
} }
// Title Bar text // Title Bar text

View file

@ -76,6 +76,7 @@ Rectangle {
width: height; width: height;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
fillMode: Image.PreserveAspectFit; fillMode: Image.PreserveAspectFit;
mipmap: true;
} }
// Title Bar text // Title Bar text
@ -209,6 +210,7 @@ Rectangle {
} }
ListView { ListView {
id: inventoryContentsList; id: inventoryContentsList;
clip: true;
// Anchors // Anchors
anchors.top: inventoryContentsLabel.bottom; anchors.top: inventoryContentsLabel.bottom;
anchors.topMargin: 8; anchors.topMargin: 8;

View file

@ -158,6 +158,7 @@ Rectangle {
GridView { GridView {
id: securityImageGrid; id: securityImageGrid;
clip: true;
// Anchors // Anchors
anchors.fill: parent; anchors.fill: parent;
currentIndex: -1; currentIndex: -1;
@ -170,12 +171,13 @@ Rectangle {
Item { Item {
anchors.fill: parent; anchors.fill: parent;
Image { Image {
width: parent.width - 20; width: parent.width - 8;
height: parent.height - 20; height: parent.height - 8;
source: sourcePath; source: sourcePath;
anchors.horizontalCenter: parent.horizontalCenter; anchors.horizontalCenter: parent.horizontalCenter;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
fillMode: Image.PreserveAspectFit; fillMode: Image.PreserveAspectFit;
mipmap: true;
} }
} }
MouseArea { MouseArea {