- Timestamp:
- 01/18/10 10:22:57 (13 years ago)
- Branches:
- master, qt5
- Children:
- 8f25cb1
- Parents:
- 8035cef
- Location:
- src/mvc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/event.cpp
r8035cef r27102d5 65 65 } 66 66 67 -
src/mvc/event.h
r8035cef r27102d5 27 27 public: 28 28 static Event getById(int id, int conferenceId); 29 static Event getVirtualById(int id, int conferenceId); 29 30 static QList<Event> getByDate(const QDate& date, int conferenceId); 30 31 static QList<Event> getFavByDate(const QDate& date, int conferenceId); // get Favourities by Date -
src/mvc/eventmodel.cpp
r8035cef r27102d5 48 48 { 49 49 if (index.internalId() == 0) 50 { 50 { //range of time data 51 //qDebug() << qVariantValue<QString>(mGroups.at(index.row()).mTitle); 51 52 return mGroups.at(index.row()).mTitle; 52 53 } 53 else 54 else //event data 54 55 { 56 //qDebug() << qVariantValue<QString>(static_cast<Event*>(index.internalPointer())->id()); 57 //return static_cast<Event*>(index.internalPointer())->id(); 58 //qDebug() << Event::getVirtualById(static_cast<Event*>(index.internalPointer())->id(), 1).title();// Id Conference is 1 by now 59 //return 1; 55 60 return static_cast<Event*>(index.internalPointer())->id(); 56 61 }
Note: See TracChangeset
for help on using the changeset viewer.