Changeset 412cef6 for src/gui/eventdialog.cpp
- Timestamp:
- 01/28/10 13:43:19 (13 years ago)
- Branches:
- master, qt5
- Children:
- 8cb5c4f
- Parents:
- 438699c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/eventdialog.cpp
r438699c r412cef6 46 46 Event event = Event::getById(mEventId,Conference::activeConference()); 47 47 48 QList<Event> conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); 48 49 if(event.isFavourite()) 49 50 { … … 57 58 } 58 59 event.update("favourite"); 60 61 if(event.isFavourite()) 62 { 63 // event has became 'favourite' and so 'conflicts' list may have changed 64 conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); 65 } 66 59 67 qDebug() << " FAVOURITE [" << event.id() << "] -> " << event.isFavourite(); 60 // update EVENT_CONFLICT table 61 event.updateConflicts(); 68 62 69 // since the Favourite icon has changed, update TreeViews accordingly 63 70 // all TreeViews have to listen on this signal 64 71 emit(eventHasChanged(event.id())); 72 73 // have to emit 'eventHasChanged' signal on all events in conflict 74 for(int i=0; i<conflicts.count(); i++) 75 emit(eventHasChanged(conflicts[i].id())); 65 76 } 66 77
Note: See TracChangeset
for help on using the changeset viewer.