Changeset 1fb7a33 for src/mvc


Ignore:
Timestamp:
01/29/10 11:06:55 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
5007fde
Parents:
8b0bf22
Message:

possible to have multiple conferences in the DB

  • possible to switch among them
  • conference schedules have to follow FOSDEM conference xml structure
  • 'select Conference' bar is visible only if there are more than one conference available
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/treeview.cpp

    r8b0bf22 r1fb7a33  
    4040        return handled;
    4141
     42    int confId = Conference::activeConference();
    4243    QRect rect = visualRect(aIndex); // visual QRect of selected/clicked item in the list
    4344    Delegate *delegate = static_cast<Delegate*>(itemDelegate(aIndex));
     
    4849            {
    4950                // handle Favourite Control clicked
    50                 Event event = Event::getById(aIndex.data().toInt(),1);
     51                Event event = Event::getById(aIndex.data().toInt(),confId);
    5152
    5253                QList<Event> conflicts = Event::conflictEvents(event.id(),Conference::activeConference());
     
    8081            {
    8182                // handle Alarm Control clicked
    82                 Event event = Event::getById(aIndex.data().toInt(),1);
     83                Event event = Event::getById(aIndex.data().toInt(),confId);
    8384                if(event.hasAlarm())
    8485                {
     
    9798                    // add alarm to the 'alarmd'
    9899                    Alarm alarm;
    99                     int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10));
     100                    //int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); // testing
     101                    int cookie = alarm.addAlarm(event.id(),event.start().addSecs(-15*60)); // 15 minutes before real start
    100102                    qDebug() << "cookie: " << cookie;
    101103#endif /* MAEMO */
Note: See TracChangeset for help on using the changeset viewer.