fix: show app in main.qml when viewing in Qt Creator

This commit is contained in:
emizzle 2020-05-13 12:51:26 +10:00 committed by Iuri Matias
parent 78eb499957
commit 4cc2d2cd22
1 changed files with 5 additions and 10 deletions

View File

@ -1,10 +1,9 @@
import QtQuick 2.3 import QtQuick 2.3
import QtQuick.Controls 1.3
import QtQuick.Controls 2.3 import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import Qt.labs.platform 1.1 import Qt.labs.platform 1.1
import "./onboarding" as Onboarding import "./onboarding"
import "./app" as App import "./app"
ApplicationWindow { ApplicationWindow {
id: applicationWindow id: applicationWindow
@ -39,13 +38,13 @@ ApplicationWindow {
anchors.fill: parent anchors.fill: parent
border.width: 0 border.width: 0
Onboarding.Intro { Intro {
id: onboarding id: onboarding
visible: !app.visible visible: !app.visible
anchors.fill: parent anchors.fill: parent
} }
App.AppMain { AppMain {
id: app id: app
// TODO: Set this to a logic result determining when we need to show the onboarding screens // TODO: Set this to a logic result determining when we need to show the onboarding screens
// Set to true to hide the onboarding screens manually // Set to true to hide the onboarding screens manually
@ -58,8 +57,4 @@ ApplicationWindow {
} }
/*##^##
Designer {
D{i:9;anchors_height:40;anchors_width:40}
}
##^##*/