- Timestamp:
- 01/29/10 11:06:55 (13 years ago)
- Branches:
- master, qt5
- Children:
- 5007fde
- Parents:
- 8b0bf22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/treeview.cpp
r8b0bf22 r1fb7a33 40 40 return handled; 41 41 42 int confId = Conference::activeConference(); 42 43 QRect rect = visualRect(aIndex); // visual QRect of selected/clicked item in the list 43 44 Delegate *delegate = static_cast<Delegate*>(itemDelegate(aIndex)); … … 48 49 { 49 50 // handle Favourite Control clicked 50 Event event = Event::getById(aIndex.data().toInt(), 1);51 Event event = Event::getById(aIndex.data().toInt(),confId); 51 52 52 53 QList<Event> conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); … … 80 81 { 81 82 // handle Alarm Control clicked 82 Event event = Event::getById(aIndex.data().toInt(), 1);83 Event event = Event::getById(aIndex.data().toInt(),confId); 83 84 if(event.hasAlarm()) 84 85 { … … 97 98 // add alarm to the 'alarmd' 98 99 Alarm alarm; 99 int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); 100 //int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); // testing 101 int cookie = alarm.addAlarm(event.id(),event.start().addSecs(-15*60)); // 15 minutes before real start 100 102 qDebug() << "cookie: " << cookie; 101 103 #endif /* MAEMO */
Note: See TracChangeset
for help on using the changeset viewer.