--- tmpfs/quassel/src/qtui/chatline.cpp 2008-08-30 16:22:13.000000000 +0000 +++ home/sphilips/projects/quassel/src/qtui/chatline.cpp 2008-08-31 18:36:04.000000000 +0000 @@ -113,6 +113,11 @@ void ChatLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { Q_UNUSED(option); Q_UNUSED(widget); + + // Some tweaks. They gain us a few ms, but every bit helps. + painter->setPen(Qt::NoPen); // Apparently, using a Pen is slow when drawing text. + painter->setClipRect(option->exposedRect); // Don't repaint things that don't have to be repainted. + if(_selection & Highlighted) { painter->fillRect(boundingRect(), QBrush(QtUi::style()->highlightColor())); }