PageStackWindow {
- initialPage: mainPage
+ initialPage: categoryPage
- Page{
- id: mainPage
- Component.onCompleted: {
- var main = Qt.createComponent("FeedingIt.qml");
- main.createObject(mainPage);
+ ToolBarLayout {
+ id: commonTools
+ visible: false
+ ToolIcon { iconId: "toolbar-back"; onClicked: { myMenu.close(); pageStack.pop(); }
+ visible: pageStack.depth>1 }
+ ToolIcon {
+ platformIconId: "toolbar-view-menu"
+ anchors.right: (parent === undefined) ? undefined : parent.right
+ onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
+ }
+ }
+
+ Menu {
+ id: myMenu
+ visualParent: pageStack
+ MenuLayout {
+ MenuItem { text: qsTr("About FeedingIt"); onClicked: query.open(); }
+ }
+ }
+
+ QueryDialog {
+ id: query
+ icon: "common/images/feedingit.png"
+ titleText: "Feedingit RSS Reader"
+ message: "Version: 0.0.9"
+ +"<br><br>FeedingIt RSS Reader.<br>"
+ +"<br>© 2011 feedingit.marcoz.org"
+ +"<br>http://feedingit.marcoz.org"
+ acceptButtonText: "OK"
+ }
+
+// Page{
+// id: mainPage
+// Component.onCompleted: {
+// var main = Qt.createComponent("FeedingIt.qml");
+// main.createObject(mainPage);
+// }
+// }
+
+ Component {
+ id: categoryPage
+ Page {
+ tools: commonTools
+ Categories {
+ onCategoryClicked: pageStack.push(feedsPage, {catid: catid})
+ }
+ }
+ }
+
+ Component {
+ id: feedsPage
+ Page {
+ tools: commonTools
+ Feeds {
+ id: feedsItem
+
+ onFeedClicked: pageStack.push(articlesPage, {feedid: feedid})
+ }
+ }
+ }
+
+ Component {
+ id: articlesPage
+ Page {
+ tools: commonTools
+ ArticleViewer {
+ id: flipper
+ }
}
}
}