Changeset 27102d5 for src/mvc


Ignore:
Timestamp:
01/18/10 10:22:57 (12 years ago)
Author:
fortefr <fortefr@…>
Branches:
master, qt5
Children:
8f25cb1
Parents:
8035cef
Message:

Temporal virtual_event change

Location:
src/mvc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.cpp

    r8035cef r27102d5  
    6565}
    6666
     67
  • src/mvc/event.h

    r8035cef r27102d5  
    2727public:
    2828    static Event getById(int id, int conferenceId);
     29    static Event getVirtualById(int id, int conferenceId);
    2930    static QList<Event> getByDate(const QDate& date, int conferenceId);
    3031    static QList<Event> getFavByDate(const QDate& date, int conferenceId); // get Favourities by Date
  • src/mvc/eventmodel.cpp

    r8035cef r27102d5  
    4848    {
    4949        if (index.internalId() == 0)
    50         {
     50        {   //range of time data
     51            //qDebug() << qVariantValue<QString>(mGroups.at(index.row()).mTitle);
    5152            return mGroups.at(index.row()).mTitle;
    5253        }
    53         else
     54        else //event data
    5455        {
     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;
    5560            return static_cast<Event*>(index.internalPointer())->id();
    5661        }
Note: See TracChangeset for help on using the changeset viewer.