Page MenuHomePhorge

main.qml
No OneTemporary

main.qml

import QtQuick 2.1
import QtQuick.Controls 2.0 as QQC2
import org.kde.kirigami 2.4 as Kirigami
// import "functions.js" as ManifoldJS
// Temporary hack until I implement some settings or storage stuff
import "../phabricator-apitoken.js" as ApiToken
Kirigami.ApplicationWindow {
id: root
// Load pages
Component {id: maniphestPage; ManiphestPage {}}
Component {id: testPage; TestPage {}}
header: Kirigami.ApplicationHeader {}
globalDrawer: Kirigami.GlobalDrawer {
title: "Manifold"
titleIcon: "applications-graphics"
actions: [
Kirigami.Action {
text: "View"
iconName: "view-list-icons"
Kirigami.Action {
text: "action 1"
}
Kirigami.Action {
text: "action 2"
}
Kirigami.Action {
text: "action 3"
}
},
Kirigami.Action {
text: "Maniphest"
onTriggered: pageStack.replace(maniphestPage)
},
Kirigami.Action {
text: "Test"
onTriggered: pageStack.replace(testPage)
}
]
}
contextDrawer: Kirigami.ContextDrawer {
id: contextDrawer
}
pageStack.initialPage: maniphestPage
}

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 18, 1:05 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
184761
Default Alt Text
main.qml (1 KB)

Event Timeline