mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 08:18:05 +02:00
added workaround for bug in Qt StackView push method
This commit is contained in:
parent
67775c59f1
commit
fd872009fe
8 changed files with 16 additions and 8 deletions
|
@ -34,7 +34,8 @@ StackView {
|
|||
}
|
||||
|
||||
function pushSource(path) {
|
||||
editRoot.push(Qt.resolvedUrl("../../" + path), itemProperties,
|
||||
var item = Qt.createComponent(Qt.resolvedUrl("../../" + path));
|
||||
editRoot.push(item, itemProperties,
|
||||
StackView.Immediate);
|
||||
editRoot.currentItem.sendToScript.connect(editRoot.sendToScript);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,8 @@ StackView {
|
|||
}
|
||||
|
||||
function pushSource(path) {
|
||||
editRoot.push(Qt.resolvedUrl("../../" + path), itemProperties,
|
||||
var item = Qt.createComponent(Qt.resolvedUrl("../../" + path));
|
||||
editRoot.push(item, itemProperties,
|
||||
StackView.Immediate);
|
||||
editRoot.currentItem.sendToScript.connect(editRoot.sendToScript);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,8 @@ StackView {
|
|||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
profileRoot.push(Qt.resolvedUrl(path));
|
||||
var item = Qt.createComponent(Qt.resolvedUrl(path));
|
||||
profileRoot.push(item);
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
|
|
@ -22,7 +22,8 @@ StackView {
|
|||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
profileRoot.push(Qt.resolvedUrl(path));
|
||||
var item = Qt.createComponent(Qt.resolvedUrl(path));
|
||||
profileRoot.push(item);
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
|
|
@ -22,7 +22,8 @@ StackView {
|
|||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
profileRoot.push(Qt.resolvedUrl(path));
|
||||
var item = Qt.createComponent(Qt.resolvedUrl(path));
|
||||
profileRoot.push(item);
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
|
|
@ -22,7 +22,8 @@ StackView {
|
|||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
profileRoot.push(Qt.resolvedUrl(path));
|
||||
var item = Qt.createComponent(Qt.resolvedUrl(path));
|
||||
profileRoot.push(item);
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
|
|
@ -22,7 +22,8 @@ StackView {
|
|||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
profileRoot.push(Qt.resolvedUrl(path));
|
||||
var item = Qt.createComponent(Qt.resolvedUrl(path));
|
||||
profileRoot.push(item);
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
|
|
@ -22,7 +22,8 @@ StackView {
|
|||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
profileRoot.push(Qt.resolvedUrl(path));
|
||||
var item = Qt.createComponent(Qt.resolvedUrl(path));
|
||||
profileRoot.push(item);
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
|
Loading…
Reference in a new issue