- painter.setBackground(fr.format.background()); // no clue why this doesnt work properly o_O
- painter.drawText(drawRect, Qt::AlignLeft|Qt::TextSingleLine, textPart);
- topLeft.setX(topLeft.x() + width);
+ painter.setBackground(fr.format.background());
+ painter.drawText(drawRect, Qt::AlignLeft|Qt::TextSingleLine, textPart, &brect);
+ drawRect.setLeft(brect.right());