Ignore:
Timestamp:
08/18/21 20:23:47 (5 months ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
763b877
Parents:
4523005
Message:

Remaining fix of bug Debian BTS #992236 (line distance).

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992236

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/delegate.cpp

    r4523005 rff579df  
    8989        fontSmall.setPixelSize(aux*0.2);
    9090        QFontMetrics fmSmall(fontSmall);
     91
    9192        // font SMALL bold
    9293        QFont fontSmallB = fontSmall;
     
    152153        QTime start = conference.shiftTime(event->start().time());
    153154        painter->setFont(fontBig);
    154         painter->drawText(titlePointF,start.toString("hh:mm") + "-" + start.addSecs(event->duration()).toString("hh:mm") + ", " + event->roomName());
     155        painter->drawText(titlePointF, start.toString("hh:mm") + "-" + start.addSecs(event->duration()).toString("hh:mm") + ", " + event->roomName());
    155156
    156157        // title
    157         titlePointF.setY(titlePointF.y()+fmBig.height()-fmBig.descent());
     158        titlePointF.setY(titlePointF.y() + fmBig.lineSpacing());
    158159        painter->setFont(fontBigB);
    159160        QString title = event->title();
     
    172173            title += "...";
    173174        }
    174         painter->drawText(titlePointF,title);
     175        painter->drawText(titlePointF, title);
    175176
    176177        // persons
    177         titlePointF.setY(titlePointF.y()+fmSmall.height()-fmSmall.descent());
     178        titlePointF.setY(titlePointF.y() + fmBigB.descent() + fmSmall.lineSpacing());
    178179        painter->setFont(fontSmall);
    179180        QString presenterPrefix = event->persons().count() < 2 ? "Presenter" : "Presenters";
    180         painter->drawText(titlePointF,presenterPrefix + ": " + event->persons().join(" and "));
     181        painter->drawText(titlePointF, presenterPrefix + ": " + event->persons().join(" and "));
    181182
    182183        // track
    183         titlePointF.setY(titlePointF.y()+fmSmall.height()-fmSmall.descent());
    184         painter->drawText(titlePointF,"Track: " + Track::retrieveTrackName(event->trackId()));
     184        titlePointF.setY(titlePointF.y() + fmSmall.lineSpacing());
     185        painter->drawText(titlePointF, "Track: " + Track::retrieveTrackName(event->trackId()));
    185186    }
    186187
Note: See TracChangeset for help on using the changeset viewer.