~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to AgendaView.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-09-20 14:08:18 UTC
  • mto: This revision was merged to the branch mainline in revision 466.
  • Revision ID: krnekhelesh@gmail.com-20140920140818-qep0jpauo02li8qi
Fixed agenda events being hightlight incorrectly

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
                    }
225
225
 
226
226
                    height: detailsColumn.height + units.gu(1)
 
227
                    borderSource: "radius_ide.sci"
227
228
 
228
229
                    states: [
229
230
                        State {
230
231
                            name: "selected"
 
232
                            when: mouseArea.pressed
231
233
 
232
234
                            PropertyChanges {
233
235
                                target: detailsContainer
234
 
                                color: UbuntuColors.orange
235
 
                            }
236
 
 
237
 
                            PropertyChanges {
238
 
                                target: timeLabel
239
 
                                color: "white"
 
236
                                borderSource: "radius_pressed.sci"
240
237
                            }
241
238
                        }
242
 
 
243
239
                    ]
244
240
 
245
 
                    Behavior on color {
246
 
                        ColorAnimation {
247
 
                            duration: 50
248
 
                        }
249
 
                    }
250
 
 
251
241
                    Column{
252
242
                        id: detailsColumn
253
243
 
285
275
                    }
286
276
 
287
277
                    MouseArea{
 
278
                        id: mouseArea
288
279
                        anchors.fill: parent
289
280
                        onClicked: {
290
281
                            pageStack.push(Qt.resolvedUrl("EventDetails.qml"), {"event":event,"model":eventListModel});
291
282
                        }
292
 
 
293
 
                        onPressed: {
294
 
                            parent.state = "selected"
295
 
                        }
296
 
 
297
 
                        onReleased: {
298
 
                            parent.state = ""
299
 
                        }
300
283
                    }
301
284
                }
302
285
            }