Merge lp:~pkunal-parmar/ubuntu-calendar-app/MonthView-Indicator into lp:ubuntu-calendar-app

Proposed by Kunal Parmar
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 706
Merged at revision: 711
Proposed branch: lp:~pkunal-parmar/ubuntu-calendar-app/MonthView-Indicator
Merge into: lp:ubuntu-calendar-app
Diff against target: 39 lines (+12/-6)
1 file modified
MonthComponentDateDelegate.qml (+12/-6)
To merge this branch: bzr merge lp:~pkunal-parmar/ubuntu-calendar-app/MonthView-Indicator
Reviewer Review Type Date Requested Status
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+266655@code.launchpad.net

Commit message

resolves Bug #1479533

Description of the change

resolves Bug #1479533

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: Approve (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :
review: Needs Fixing
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

Thanks, I will try to improve that

706. By Kunal Parmar

review comment

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

Please check once more, I tried to adjust some parameters

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
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Much better, thanks Kunal!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MonthComponentDateDelegate.qml'
2--- MonthComponentDateDelegate.qml 2015-06-11 12:24:41 +0000
3+++ MonthComponentDateDelegate.qml 2015-08-20 12:15:22 +0000
4@@ -14,10 +14,11 @@
5
6 Loader {
7 sourceComponent: (isToday && isCurrentMonth) || isSelected ? highLightComp : undefined
8+
9 onSourceComponentChanged: {
10 width = Qt.binding( function() {
11 var width = dateRootItem.height > dateRootItem.width ? dateRootItem.width :dateRootItem.height
12- return ( width / 1.1 );
13+ return ( width / 1.3 );
14 });
15 height = Qt.binding ( function() { return width} );
16 anchors.centerIn = Qt.binding( function() { return dateLabel});
17@@ -47,12 +48,17 @@
18 }
19
20 Loader{
21- width: units.gu(1)
22- height: width
23- anchors.horizontalCenter: parent.horizontalCenter
24- anchors.top: dateLabel.bottom
25- anchors.topMargin: dateRootItem.height/4
26 sourceComponent: showEvent ? eventIndicatorComp : undefined
27+ onSourceComponentChanged: {
28+ width = Qt.binding( function() { return units.gu(0.8)})
29+ height = Qt.binding( function() { return width })
30+ anchors.horizontalCenter = Qt.binding( function() { return parent.horizontalCenter })
31+ anchors.top = Qt.binding( function() { return parent.verticalCenter })
32+ anchors.topMargin = Qt.binding( function() {
33+ var w = (dateRootItem.height > dateRootItem.width ? dateRootItem.width :dateRootItem.height)/1.3
34+ return (w/2) + units.gu(0.1)
35+ });
36+ }
37 }
38
39 Component{

Subscribers

People subscribed via source and target branches

to status/vote changes: