Changeset 4be95b8 for src/mvc/delegate.h


Ignore:
Timestamp:
01/18/10 19:21:48 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
18681b3
Parents:
a35aa83
Message:

implemented drawing icons + number of favs/alarms
in the corresponding group

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/delegate.h

    ra35aa83 r4be95b8  
    6363        bool isExpanded( const QModelIndex &index ) const;
    6464        void defineControls();
     65        // TODO: the better place for these methods would be 'eventmodel'
     66        // they are used in 'paint' method and so it's better to obtain number of
     67        // favourities/alarms once when the data has changed and not to call
     68        // these methods which iterate over all Events in corresponding group
     69        // every time it requires them
     70        int numberOfFavourities(const QModelIndex &index) const;
     71        int numberOfAlarms(const QModelIndex &index) const;
    6572
    6673    private:
Note: See TracChangeset for help on using the changeset viewer.