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
558 B
20 lines
558 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 / 1.3
|
|
height = Const.windowHeight / 1.3
|
|
x = (Screen.width - width) / 2
|
|
y = (Screen.height - height)
|
|
}
|
|
}
|
|
|