Merge lp:~vthompson/ubuntu-calendar-app/fixes-1247191 into lp:ubuntu-calendar-app

Proposed by Victor Thompson
Status: Merged
Approved by: Kunal Parmar
Approved revision: 169
Merged at revision: 230
Proposed branch: lp:~vthompson/ubuntu-calendar-app/fixes-1247191
Merge into: lp:ubuntu-calendar-app
Diff against target: 11 lines (+1/-0)
1 file modified
YearView.qml (+1/-0)
To merge this branch: bzr merge lp:~vthompson/ubuntu-calendar-app/fixes-1247191
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Olivier Tilloy (community) Needs Fixing
Kunal Parmar Approve
Review via email: mp+193684@code.launchpad.net

Commit message

* Only the current year's GridView have focus as True

Description of the change

* Only the current year's GridView have focus as True

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

This change is causing some side effect, changes will hide previous and next year, which will leave blank space while we are scrolling years horizontally. I am not sure if we want this behavior.

Please see following screenshot which shows what I am talking about

Following screenshot contains following changes, which hides next year when we are scrolling horizontally, which leaves blank space
http://ubuntuone.com/0JThJJxHIceoAtlO5kS7ep

Originally it was looking like following.
http://ubuntuone.com/6GvVlwjiPu2B4jcwJygGh3

review: Needs Fixing
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

My Opinion is that #1247191 is not a bug, it is expected behavior for years horizontal scrolling.

Revision history for this message
Victor Thompson (vthompson) wrote :

Kunal,

Are you sure you are not speaking of the MR for lp:1247192 [1]? The merge you are commenting on does not change the scrolling behavior.

[1] lp:~vthompson/ubuntu-calendar-app/fixes-1247192

166. By Victor Thompson

Give focus if dragging the PathView

Revision history for this message
Victor Thompson (vthompson) wrote :

Kunal,

I believe I have addressed your concerns on this branch as well as the other one.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> Kunal,
>
> Are you sure you are not speaking of the MR for lp:1247192 [1]? The merge you
> are commenting on does not change the scrolling behavior.
>
> [1] lp:~vthompson/ubuntu-calendar-app/fixes-1247192

Yes, I think I was confused with two mr.

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

I checked, this changes does not affect current working of YearView. If this changes help in improving test case then I am fine with the changes.

review: Approve
167. By Victor Thompson

merge trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

This change doesn’t make sense to me: in PathViewBase, indexType(…) returns 1 for the next year, not for the current one.

On top of that, the root.dragging condition means that whenever the user is dragging, all three delegates will be focused at the same time. How about:

    focus: index == root.currentIndex

review: Needs Fixing
168. By Victor Thompson

Use index suggestion

169. By Victor Thompson

Do not focus all items while path is moving

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'YearView.qml'
2--- YearView.qml 2014-03-22 03:07:26 +0000
3+++ YearView.qml 2014-04-03 14:52:15 +0000
4@@ -23,6 +23,7 @@
5 delegate: GridView{
6 id: yearView
7 clip: true
8+ focus: index == root.currentIndex
9
10 property bool isCurrentItem: index == root.currentIndex
11 property int year: (root.currentYear + root.indexType(index))

Subscribers

People subscribed via source and target branches

to status/vote changes: