Changeset 6759e32
- Timestamp:
- 07/14/21 21:28:46 (10 months ago)
- Branches:
- master
- Children:
- 102d186
- Parents:
- ce60f42
- git-author:
- Philipp Spitzer <philipp@…> (07/14/21 21:28:02)
- git-committer:
- Philipp Spitzer <philipp@…> (07/14/21 21:28:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/delegate.cpp
rce60f42 r6759e32 364 364 int nrofFavs = 0; 365 365 for(int i=0; i<index.model()->rowCount(index); i++) 366 if(static_cast<Event*>(index. child(i,0).internalPointer())->favourite() != Favourite_no)366 if(static_cast<Event*>(index.model()->index(i, 0, index).internalPointer())->favourite() != Favourite_no) 367 367 nrofFavs++; 368 368 … … 377 377 int nrofAlarms = 0; 378 378 for(int i=0; i<index.model()->rowCount(index); i++) 379 if(static_cast<Event*>(index. child(i,0).internalPointer())->hasAlarm())379 if(static_cast<Event*>(index.model()->index(i, 0, index).internalPointer())->hasAlarm()) 380 380 nrofAlarms++; 381 381
Note: See TracChangeset
for help on using the changeset viewer.