X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/280f29b1e52958d36d17fe2a8f2e4686e68a01a8..5b7fa79bd7a4f4b468a82947cc1659e866084c73:/src/mvc/eventmodel.cpp diff --git a/src/mvc/eventmodel.cpp b/src/mvc/eventmodel.cpp index ff3d0eb..ac131a4 100644 --- a/src/mvc/eventmodel.cpp +++ b/src/mvc/eventmodel.cpp @@ -22,6 +22,8 @@ #include "track.h" #include "room.h" +#include + const QString EventModel::COMMA_SEPARATOR = ", "; EventModel::EventModel() @@ -34,7 +36,10 @@ void EventModel::Group::setTitle(const QList& mEvents) { for (int i = mFirstEventIndex; i != mFirstEventIndex + mChildCount; ++i) { endTime = qMax(mEvents.at(i).start().addSecs(mEvents.at(i).duration()), endTime); } - mTitle = QString("%1 - %2").arg(startTime.toString("HH:mm")).arg(endTime.toString("HH:mm")); + Conference& conference = ((Application*) qApp)->activeConference(); + QTime s = conference.shiftTime(startTime.time()); + QTime e = conference.shiftTime(endTime.time()); + mTitle = QString("%1 - %2").arg(s.toString("HH:mm")).arg(e.toString("HH:mm")); }