oboy/src/qt/BackgroundMap.qml

26 lines
537 B
QML
Raw Normal View History

2016-04-18 23:06:17 +02:00
import QtQuick 2.4
import QtQuick.Window 2.0
Window {
title: "Background maps"
// A background map is 32 x 32 tiles.
// Each tile is 8 x 8 pixels.
2016-08-10 00:05:10 +02:00
width: 32 * (16 + 1) + 1
height: 32 * (16 + 1) + 1
2016-04-18 23:06:17 +02:00
maximumWidth: width
minimumWidth: width
maximumHeight: height
minimumHeight: height
2019-07-05 14:20:17 +02:00
// BackgroundMapForm {
// anchors.fill: parent
// }
Image {
source: "image://oboy/bg_map"
2016-04-18 23:06:17 +02:00
anchors.fill: parent
2019-07-05 14:20:17 +02:00
smooth: false
fillMode: Image.PreserveAspectFit
2016-04-18 23:06:17 +02:00
}
}