diff --git a/tabbox.cpp b/tabbox.cpp index 266211b046..35f35ccc88 100644 --- a/tabbox.cpp +++ b/tabbox.cpp @@ -426,7 +426,7 @@ void TabBox::drawContents( QPainter * ) else s += (*it)->caption(); - s = KStringHandler::cPixelSqueeze(s, fontMetrics(), r.width() - 5 - iconWidth - 8); + s = fontMetrics().elidedText(s, Qt::ElideMiddle, r.width() - 5 - iconWidth - 8); // draw text if ( (*it) == current_client )