Ignore:
Timestamp:
01/21/10 23:03:07 (13 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
d336730
Parents:
1735f55
Message:

EventModel? signaling changed

  • if some of the data (favourite,alarm) has changed on the event, signal 'eventHasChanged' is emitted
  • all treeViews (eg. DayView?, FavsView?, TracksView?, ...) have to listen on this signal

Only favouritiesView is 'reset' when current tab is changed in mainWindow

  • 'cause time groupings have to be recreated, since favs may have changed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/eventmodel.h

    r1735f55 rc718a77  
    2121    void loadEventsByTrack(const QDate &aDate, int aConferenceId); // loads Events grouped by Track from the DB
    2222    int loadSearchResultEvents(const QDate &aDate, int aConferenceId);
    23     // a method to force 'EventModel' emit signal 'dataChanged()'
    24     // a 'view', eg. 'TreeView' listens for this signal and redraws changed items(indexes)
    25     void emitDataChangedSignal(const QModelIndex &aTopLeft, const QModelIndex &aBottomRight);
    2623
    2724private:
     
    4643    void clearModel();
    4744
     45public slots:
     46    void updateModel(int aEventId);
     47
    4848private:
    4949    QList<Event> mEvents;
Note: See TracChangeset for help on using the changeset viewer.