committed by
Craig Drummond
parent
bf6084d1e7
commit
fd2f7bdbac
@@ -494,7 +494,7 @@ public:
|
||||
if (text.count()>1) {
|
||||
int mainWidth=textMetrics.width(str);
|
||||
text.takeFirst();
|
||||
str=text.join(" - ");
|
||||
str=text.join(" – ");
|
||||
textRect=QRect(r.x()+(mainWidth+8), r.y()+((r.height()-textHeight)/2), r.width()-(mainWidth+8), textHeight);
|
||||
if (textRect.width()>4) {
|
||||
str = textMetrics.elidedText(str, Qt::ElideRight, textRect.width(), QPalette::WindowText);
|
||||
|
||||
Reference in New Issue
Block a user