1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Elide hint text in text boxes

This commit is contained in:
David Sansome 2011-11-08 18:22:01 +00:00
parent 959ac6ae4d
commit 7c5aaf36aa

View File

@ -113,7 +113,8 @@ void ExtendedEditor::Paint(QPaintDevice* device) {
p.setFont(font);
QRect r(5, kBorder, device->width() - 10, device->height() - kBorder*2);
p.drawText(r, Qt::AlignLeft | Qt::AlignVCenter, hint_);
p.drawText(r, Qt::AlignLeft | Qt::AlignVCenter,
m.elidedText(hint_, Qt::ElideRight, r.width()));
}
} else {
clear_button_->setVisible(has_clear_button_);