Changeset a59d5c4 in confclerk_git


Ignore:
Timestamp:
08/19/21 15:30:28 (11 months ago)
Author:
gregor herrmann <gregor@…>
Branches:
master
Children:
b5fa774
Parents:
763b877
Message:

Take display time shift into account when expanding a group in the day view tab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/dayviewtabcontainer.cpp

    r763b877 ra59d5c4  
    2727void DayViewTabContainer::expandTimeGroup(QTime time, int conferenceId) {
    2828    EventModel* eventModel = static_cast<EventModel*>(treeView->model());
     29    Conference conference = Conference::getById(conferenceId);
    2930
    3031    // iterate over the time groups
     
    3637            int eventId = eventIdx.data().toInt();
    3738            Event event = Event::getById(eventId, conferenceId);
    38             if (time < event.start().time().addSecs(event.duration())) { // if time < end
     39            QDateTime eventStart = event.start();
     40            if (conference.hasDisplayTimeShift()) eventStart = eventStart.addSecs(conference.displayTimeShift() * 60);
     41            if (time < eventStart.time().addSecs(event.duration())) { // if time < end
    3942                // expand this group
    4043                treeView->expand(groupIdx);
Note: See TracChangeset for help on using the changeset viewer.