forked from Sepanta/console-emulator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
529 B
20 lines
529 B
import QtQuick 2.10
|
|
import QtQuick.Window 2.13
|
|
import de.skycoder42.QtMvvm.Quick 1.0
|
|
import "qrc:/const/"
|
|
import "qrc:/theme/"
|
|
|
|
QtMvvmApp {
|
|
title: qsTr("consoleEmulator")
|
|
id: mvvmApp
|
|
|
|
onWidthChanged: Const.widthRatio = mvvmApp.width / Const.windowWidth
|
|
onHeightChanged: Const.heightRatio = mvvmApp.height / Const.windowHeight
|
|
|
|
Component.onCompleted: {
|
|
width = Const.windowWidth
|
|
height = Const.windowHeight
|
|
x = (Screen.width - width) / 2
|
|
y = (Screen.height - height)
|
|
}
|
|
}
|
|
|