~nick-dedekind/ubuntu-settings-components/bluetooth-menu

« back to all changes in this revision

Viewing changes to SettingsComponents/Calendar/Calendar.qml

  • Committer: Andrea Cimitan
  • Date: 2013-06-17 14:56:17 UTC
  • Revision ID: andrea.cimitan@gmail.com-20130617145617-hx22vm0ii3zwroqz
Changed tests for Calendar compressed property

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
ListView {
22
22
    id: monthView
23
23
 
24
 
    // Used for tests
25
 
    readonly property real __compressedHeight: intern.squareUnit + intern.verticalMargin * 2
26
 
    readonly property real __expandedHeight: intern.squareUnit * 6 + intern.verticalMargin * 2
27
 
 
28
24
    property bool compressed: false
29
25
    property var currentDate: selectedDate.monthStart().addDays(15)
30
26
    property var firstDayOfWeek: Qt.locale(i18n.language).firstDayOfWeek
75
71
    }
76
72
 
77
73
    width: parent.width
78
 
    height: compressed ? __compressedHeight : __expandedHeight
 
74
    height: intern.squareUnit * (compressed ? 1 : 6) + intern.verticalMargin * 2
79
75
    interactive: !compressed
80
76
    clip: true
81
77
    cacheBuffer: width + 1