mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 09:03:57 -07:00
Use setLabelText() so it's white
Took 2 minutes
This commit is contained in:
parent
d0c93f19d1
commit
08a664525a
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ void ArchidektApiResponseDeckEntryDisplayWidget::updateScaledPreview()
|
|||
int textMaxWidth = int(newWidth * 0.7); // allow 70% of width for text
|
||||
QFontMetrics fm(previewWidget->topLeftLabel->font());
|
||||
QString elided = fm.elidedText(response.getName(), Qt::ElideRight, textMaxWidth);
|
||||
previewWidget->topLeftLabel->setText(elided);
|
||||
previewWidget->topLeftLabel->setLabelText(elided);
|
||||
previewWidget->topLeftLabel->setToolTip(response.getName());
|
||||
|
||||
setFixedWidth(newWidth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue