refactor: cache whole Room object in Event
[toast/confclerk.git] / src / mvc / delegate.cpp
index ab0774f0183422bc17942a3d8a4e34686bf3d13f..403795e51a69f8a640fc142591dbab2d978ec05f 100644 (file)
@@ -153,7 +153,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons
         titlePointF.setY(titlePointF.y()+mControls[FavouriteControlOn]->image()->height());
         QTime start = event->start().time();
         painter->setFont(fontBig);
-        painter->drawText(titlePointF,start.toString("hh:mm") + "-" + start.addSecs(event->duration()).toString("hh:mm") + ", " + event->room());
+        painter->drawText(titlePointF,start.toString("hh:mm") + "-" + start.addSecs(event->duration()).toString("hh:mm") + ", " + event->roomName());
         // title
         titlePointF.setY(titlePointF.y()+fmBig.height()-fmBig.descent());
         painter->setFont(fontBigB);