Changeset 7b3cd0e for src/mvc/treeview.cpp
- Timestamp:
- 01/20/17 21:46:55 (6 years ago)
- Branches:
- master, qt5
- Children:
- ec7fa22
- Parents:
- ea8416e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/treeview.cpp
rea8416e r7b3cd0e 65 65 switch(delegate->whichControlClicked(aIndex,aPoint)) 66 66 { 67 case Delegate::FavouriteControlOn: 68 case Delegate::FavouriteControlOff: 67 case Delegate::FavouriteControlStrong: 68 case Delegate::FavouriteControlWeak: 69 case Delegate::FavouriteControlNo: 69 70 { 70 71 // handle Favourite Control clicked … … 72 73 73 74 QList<Event> conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); 74 event. setFavourite(!event.isFavourite());75 event.cycleFavourite(); 75 76 event.update("favourite"); 76 77 77 if(event.isFavourite()) 78 { 79 // event has became 'favourite' and so 'conflicts' list may have changed 80 conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); 81 } 78 // event has became 'favourite' and so 'conflicts' list may have changed 79 conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); 82 80 83 81 // have to emit 'eventChanged' signal on all events in conflict
Note: See TracChangeset
for help on using the changeset viewer.