Skip to content

Commit

Permalink
Fixed issue #1: scroll to top of page after selecting category
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderKlootwijk committed Dec 7, 2019
1 parent 3920232 commit 85ccf22
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion harbour-nednieuws.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.9.1, 2019-11-11T20:48:17. -->
<!-- Written by QtCreator 4.9.1, 2019-11-19T20:22:36. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down
33 changes: 33 additions & 0 deletions qml/pages/FirstPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosjournaal"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -99,6 +102,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwsbinnenland"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -126,6 +132,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwsbuitenland"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -153,6 +162,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwspolitiek"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -180,6 +192,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwseconomie"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -207,6 +222,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nossportalgemeen"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -234,6 +252,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwskoningshuis"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -261,6 +282,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwstech"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -288,6 +312,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwscultuurenmedia"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -315,6 +342,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosnieuwsopmerkelijk"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down Expand Up @@ -342,6 +372,9 @@ Page {
feedListModel.source = "https://feeds.feedburner.com/nosop3"
feedListModel.reload

// scroll to top
listView.scrollToTop()

// go back to previous page
pageStack.push(mainPage)
}
Expand Down
2 changes: 1 addition & 1 deletion rpm/harbour-nednieuws.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name: harbour-nednieuws
# << macros

Summary: NedNieuws
Version: 1.1
Version: 1.1.1
Release: 1
Group: Qt/Qt
License: LICENSE
Expand Down

0 comments on commit 85ccf22

Please sign in to comment.