fix spacing
This commit is contained in:
parent
8021ff4256
commit
88f59d2016
@ -21,15 +21,15 @@ import QtQuick 2.2
|
|||||||
import QtQuick.Window 2.1
|
import QtQuick.Window 2.1
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: root
|
id: root
|
||||||
property int terminalCount
|
property int terminalCount
|
||||||
|
|
||||||
function newWindow() {
|
function newWindow() {
|
||||||
var component = Qt.createComponent("main.qml")
|
var component = Qt.createComponent("main.qml")
|
||||||
var window = component.createObject()
|
var window = component.createObject()
|
||||||
window.show()
|
window.show()
|
||||||
terminalCount = terminalCount + 1
|
terminalCount = terminalCount + 1
|
||||||
}
|
}
|
||||||
function closeWindow() {
|
function closeWindow() {
|
||||||
terminalCount = terminalCount - 1
|
terminalCount = terminalCount - 1
|
||||||
if (terminalCount == 0) {
|
if (terminalCount == 0) {
|
||||||
@ -38,6 +38,6 @@ QtObject {
|
|||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
terminalCount = 0
|
terminalCount = 0
|
||||||
root.newWindow()
|
root.newWindow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user