mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2026-02-08 00:32:27 +00:00
Tentative first implementation of client side decorations.
This commit is contained in:
@@ -38,14 +38,15 @@ QtObject {
|
||||
visible: false
|
||||
}
|
||||
|
||||
property Component windowComponent: Component {
|
||||
TerminalWindow { }
|
||||
}
|
||||
|
||||
property ListModel windowsModel: ListModel { }
|
||||
|
||||
function createWindow() {
|
||||
var window = windowComponent.createObject(null)
|
||||
var component = Qt.createComponent("TerminalWindow.qml")
|
||||
if (component.status === Component.Error) {
|
||||
console.error(component.errorString())
|
||||
return
|
||||
}
|
||||
var window = component.createObject(null)
|
||||
if (!window)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user