Merge lp:~twstd-dev/ubuntu-calendar-app/1360314 into lp:ubuntu-calendar-app

Proposed by twstd
Status: Merged
Approved by: Mihir Soni
Approved revision: 426
Merged at revision: 435
Proposed branch: lp:~twstd-dev/ubuntu-calendar-app/1360314
Merge into: lp:ubuntu-calendar-app
Diff against target: 68 lines (+38/-1)
1 file modified
AgendaView.qml (+38/-1)
To merge this branch: bzr merge lp:~twstd-dev/ubuntu-calendar-app/1360314
Reviewer Review Type Date Requested Status
Mihir Soni Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+232928@code.launchpad.net

Commit message

A fix for bug #1360314

Description of the change

Unfortunately event page gets open instantly, highlight doesn't even have time to render. This is a pretty hacky way.

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 :

I think delaying click event and displaying the EventDetails page is not a good idea.
However, if user keep pressing the ListItem, that time we should change background color.

So I suggest, we should change background color on MousePress and MouseRelease, and let click event do what it was doing previously.

And we may add color anaimation of color change behavior.

Revision history for this message
twstd (twstd-dev) wrote :

> I think delaying click event and displaying the EventDetails page is not a
> good idea.
> However, if user keep pressing the ListItem, that time we should change
> background color.
>
> So I suggest, we should change background color on MousePress and
> MouseRelease, and let click event do what it was doing previously.
>
> And we may add color anaimation of color change behavior.

Thank you for the hint! Was not sure that pressed gets called before. Good to know!

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
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
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
Mihir Soni (mihirsoni) wrote :

Works as expected.
Thanks for MR.

review: Approve
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: Needs Fixing (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Could you please merge with trunk ?

review: Needs Fixing
426. By twstd

Merge with the main branch

Revision history for this message
twstd (twstd-dev) wrote :

Updated

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
Mihir Soni (mihirsoni) wrote :

Tested and works as expected :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'AgendaView.qml'
2--- AgendaView.qml 2014-09-05 05:36:00 +0000
3+++ AgendaView.qml 2014-09-06 17:59:57 +0000
4@@ -193,12 +193,35 @@
5
6 UbuntuShape{
7 id: detailsContainer
8- color: "white"
9+ color: backgroundColor
10
11 anchors.horizontalCenter: parent.horizontalCenter
12 width: parent.width - units.gu(4)
13 height: detailsColumn.height + units.gu(1)
14
15+ states: [
16+ State {
17+ name: "selected"
18+
19+ PropertyChanges {
20+ target: detailsContainer
21+ color: UbuntuColors.orange
22+ }
23+
24+ PropertyChanges {
25+ target: timeLabel
26+ color: "white"
27+ }
28+ }
29+
30+ ]
31+
32+ Behavior on color {
33+ ColorAnimation {
34+ duration: 50
35+ }
36+ }
37+
38 Column{
39 id: detailsColumn
40
41@@ -229,6 +252,12 @@
42 color:"black"
43 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
44 width: parent.width
45+
46+ Behavior on color {
47+ ColorAnimation {
48+ duration: 50
49+ }
50+ }
51 }
52 }
53
54@@ -237,6 +266,14 @@
55 onClicked: {
56 pageStack.push(Qt.resolvedUrl("EventDetails.qml"), {"event":event,"model":eventListModel});
57 }
58+
59+ onPressed: {
60+ parent.state = "selected"
61+ }
62+
63+ onReleased: {
64+ parent.state = ""
65+ }
66 }
67 }
68 }

Subscribers

People subscribed via source and target branches

to status/vote changes: