diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml index 63eabaa..c655f4b 100644 --- a/src/contents/ui/main.qml +++ b/src/contents/ui/main.qml @@ -16,13 +16,5 @@ Kirigami.ApplicationWindow { // Set the first page that will be loaded when the app opens // This can also be set to an id of a Kirigami.Page - pageStack.initialPage: Kirigami.ScrollablePage { - title: i18nc("@title", "Kountdown") - - Controls.Label { - // Center label horizontally and vertically within parent object - anchors.centerIn: parent - text: i18n("Hello World!") - } - } + pageStack.initialPage: Qt.resolvedUrl("start_page.qml") } diff --git a/src/contents/ui/start_page.qml b/src/contents/ui/start_page.qml new file mode 100644 index 0000000..cc4cc59 --- /dev/null +++ b/src/contents/ui/start_page.qml @@ -0,0 +1,15 @@ +// Includes relevant modules used by the QML +import QtQuick 2.15 +import QtQuick.Controls 2.15 as Controls +import QtQuick.Layouts 1.15 +import org.kde.kirigami 2.20 as Kirigami + +Kirigami.ScrollablePage { + title: i18nc("@title", "Kountdown") + + Controls.Label { + // Center label horizontally and vertically within parent object + anchors.centerIn: parent + text: i18n("Hello World!") + } +} diff --git a/src/resources.qrc b/src/resources.qrc index b2b45f8..be1b43c 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -1,5 +1,6 @@ contents/ui/main.qml + contents/ui/start_page.qml