fix qml issue

This commit is contained in:
Brad Hefta-Gaub 2016-04-26 13:29:22 -07:00
parent e7d26a8a63
commit 82f905dc84
3 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ FocusScope {
objectName: "desktop"
anchors.fill: parent
readonly int INVALID_POSITION: -9999;
readonly property int invalid_position: -9999;
property rect recommendedRect: Qt.rect(0,0,0,0);
property var expectedChildren;

View file

@ -31,7 +31,7 @@ Fadable {
// decorations can extend outside it.
implicitHeight: content ? content.height : 0
implicitWidth: content ? content.width : 0
x: desktop.INVALID_POSITION; y: desktop.INVALID_POSITION;
x: desktop.invalid_position; y: desktop.invalid_position;
enabled: visible
signal windowDestroyed();
@ -275,7 +275,7 @@ Fadable {
}
function centerOrReposition() {
if (x == desktop.INVALID_POSITION && y == desktop.INVALID_POSITION) {
if (x == desktop.invalid_position && y == desktop.invalid_position) {
desktop.centerOnVisible(window);
} else {
desktop.repositionOnVisible(window);

View file

@ -19,7 +19,7 @@ Fadable {
// decorations can extend outside it.
implicitHeight: content ? content.height : 0
implicitWidth: content ? content.width : 0
x: desktop.INVALID_POSITION; y: desktop.INVALID_POSITION;
x: desktop.invalid_position; y: desktop.invalid_position;
enabled: visible
signal windowDestroyed();
@ -125,7 +125,7 @@ Fadable {
}
function centerOrReposition() {
if (x == desktop.INVALID_POSITION && y == desktop.INVALID_POSITION) {
if (x == desktop.invalid_position && y == desktop.invalid_position) {
desktop.centerOnVisible(window);
} else {
desktop.repositionOnVisible(window);