Changeset d49254d for src/mvc/event.cpp


Ignore:
Timestamp:
01/27/10 22:08:37 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
0401cc2
Parents:
21d7cc0
Message:

'conflict' dialog now contains list of events in conflict with given eventId

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.cpp

    r21d7cc0 rd49254d  
    6969}
    7070
     71QList<Event> Event::conflictEvents(int aEventId, int conferenceId)
     72{
     73    QSqlQuery query;
     74    query.prepare( selectQuery() + QString("WHERE id IN ( SELECT conflict_event FROM event_conflict WHERE xid_event = :id AND xid_conference = :conf ) ORDER BY %1").arg("start"));
     75    query.bindValue(":id", aEventId);
     76    query.bindValue(":conf", conferenceId);
     77
     78    return load(query);
     79}
     80
    7181QList<Event> Event::getFavByDate(const QDate& date, int conferenceId)
    7282{
Note: See TracChangeset for help on using the changeset viewer.