mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:50:38 +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;
|
width: height;
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
fillMode: Image.PreserveAspectFit;
|
fillMode: Image.PreserveAspectFit;
|
||||||
|
mipmap: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Title Bar text
|
// Title Bar text
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue