~mihirsoni/ubuntu-calendar-app/dateSelectNewEventTest

« back to all changes in this revision

Viewing changes to TimeLineBaseComponent.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-09-19 11:03:09 UTC
  • mto: (455.5.4 3-Improve-DayView)
  • mto: This revision was merged to the branch mainline in revision 460.
  • Revision ID: krnekhelesh@gmail.com-20140919110309-jj28bqc9y8j155gx
Improved week views

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
 
import QtQuick 2.0
 
18
 
 
19
import QtQuick 2.3
 
20
import QtQuick.Layouts 1.1
19
21
import Ubuntu.Components 1.1
20
22
import Ubuntu.Components.Popups 1.0
21
23
import QtOrganizer 5.0
22
 
 
23
24
import "dateExt.js" as DateExt
24
25
import "ViewType.js" as ViewType
25
26
 
88
89
        z:2
89
90
    }
90
91
 
91
 
    Column {
92
 
        anchors.top: parent.top
93
 
 
94
 
        width: parent.width
95
 
        height: parent.height
 
92
    ColumnLayout {
 
93
        anchors.fill: parent
96
94
 
97
95
        AllDayEventComponent {
98
96
            id: allDayContainer
111
109
            id: timeLineView
112
110
 
113
111
            width: parent.width
114
 
            height: parent.height - allDayContainer.height
 
112
            Layout.fillHeight: true
115
113
 
116
114
            contentHeight: units.gu(10) * 24
117
115
            contentWidth: width
118
116
 
119
117
            clip: true
120
118
 
121
 
            TimeLineBackground {
122
 
            }
 
119
            TimeLineBackground {}
123
120
 
124
121
            Row {
125
122
                id: week
126
 
                width: parent.width
127
 
                height: parent.height
128
 
                anchors.top: parent.top
 
123
                anchors.fill: parent
129
124
 
130
125
                Repeater {
131
126
                    model: type == ViewType.ViewTypeWeek ? 7 : 1