~frankencode/ubuntu-calendar-app/data-service

« back to all changes in this revision

Viewing changes to MonthView.qml

  • Committer: Frank Mertens
  • Date: 2013-03-27 23:09:07 UTC
  • Revision ID: frank@cyblogic.de-20130327230907-t1pp3wlylo2p9ng6
Allow proper interactions with the compressed event view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    readonly property var currentDayStart: intern.currentDayStart
12
12
 
13
13
    property bool compressed: false
14
 
    property real compressedHeight: intern.squareUnit + intern.verticalMargin * 2
15
 
    property real visibleHeight: compressed ? compressedHeight : height
 
14
    readonly property real compressedHeight: intern.squareUnit + intern.verticalMargin * 2
 
15
    readonly property real expandedHeight: intern.squareUnit * 6 + intern.verticalMargin * 2
16
16
 
17
17
    signal incrementCurrentDay
18
18
    signal decrementCurrentDay
101
101
    }
102
102
 
103
103
    width: parent.width
104
 
    height: intern.squareUnit * 6 + intern.verticalMargin * 2
 
104
    height: compressed ? compressedHeight : expandedHeight
105
105
 
106
106
    interactive: !compressed
107
107
    clip: true