painter->setFont(fontBigB);
QString title = event->title();
if(fmBigB.boundingRect(title).width() > (option.rect.width()-2*SPACER)) // the title won't fit the screen
painter->setFont(fontBigB);
QString title = event->title();
if(fmBigB.boundingRect(title).width() > (option.rect.width()-2*SPACER)) // the title won't fit the screen