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:
parent
959ac6ae4d
commit
7c5aaf36aa
@ -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_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user