Merge lp:~gerlowskija/ubuntu-calendar-app/click_day_from_week_view_bug1291504 into lp:ubuntu-calendar-app
Status: | Merged |
---|---|
Approved by: | Kunal Parmar |
Approved revision: | 224 |
Merged at revision: | 232 |
Proposed branch: | lp:~gerlowskija/ubuntu-calendar-app/click_day_from_week_view_bug1291504 |
Merge into: | lp:ubuntu-calendar-app |
Diff against target: |
186 lines (+76/-16) 6 files modified
HeaderDateComponent.qml (+31/-16) TimeLineHeader.qml (+6/-0) TimeLineHeaderComponent.qml (+6/-0) WeekView.qml (+6/-0) calendar.qml (+5/-0) tests/autopilot/calendar_app/tests/test_weekview.py (+22/-0) |
To merge this branch: | bzr merge lp:~gerlowskija/ubuntu-calendar-app/click_day_from_week_view_bug1291504 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Jason (community) | Approve | ||
Alan Pope πΊπ§π± π¦ (community) | Approve | ||
Kunal Parmar | Needs Fixing | ||
Review via email: mp+212959@code.launchpad.net |
Commit message
Switch to selected date in 'Day View' when user clicks on day in 'Week View'
Description of the change
As part of the HackDay for the Calendar app, I wanted to address Bug 1921504, which requests that support be added for "zooming-in" to individual days by clicking on the date from the Week View.
This branch should contain a commit for the change that allows users to pull up the Day view when they click on a day, as well as a commit with an autopilot test that can be run to check this behavior.
You can test the change by:
1) Open the calendar app.
2) Navigate to the "Week" view/tab.
3) Click on on of the days of the week (either the name of the day (Mon, Tue, Wed, etc), or the date that should be right below it).
4) Check that the display now shows the "Day" view/tab, and that you're looking at the day you selected
(Hopefully I staged and pushed my changes correctly; bit of a bzr novice).
+ MouseArea { ed(date) ;
18 + anchors.fill: parent
19 + onClicked: {
20 + root.dateSelect
21 + }
22 + }
I think it would be better if we add this click handler to parent component( i mean the root id), so we dont need to add separate handler for both label component.