updated also groupings item (event parent item) if the
authorpavelpa <pavelpa@localhost>
Mon, 25 Jan 2010 11:32:13 +0000 (11:32 +0000)
committerpavelpa <pavelpa@localhost>
Mon, 25 Jan 2010 11:32:13 +0000 (11:32 +0000)
user clicks eg. favourite/alarm icon (changes event data)

src/mvc/eventmodel.cpp

index cdcacac..4fb24b7 100644 (file)
@@ -271,6 +271,7 @@ void EventModel::updateModel(int aEventId)
             QModelIndex eventIndex = index(j,0,groupIndex);
             if(static_cast<Event*>(eventIndex.internalPointer())->id() == aEventId)
             {
+                emit(dataChanged(groupIndex,groupIndex));
                 emit(dataChanged(eventIndex,eventIndex));
             }
         }