hiro/qt: Explicitly use nall string in call to Font::size

This is back-ported from ares:
0d131bf4d8

Co-authored-by: invertego <invertego@users.noreply.github.com>
This commit is contained in:
John Chadwick 2025-09-01 19:59:46 -04:00 committed by Screwtapello
parent 64a433a644
commit b3ce74253e
1 changed files with 1 additions and 1 deletions

2
hiro/qt/widget/button.cpp Executable file → Normal file
View File

@ -21,7 +21,7 @@ auto pButton::destruct() -> void {
}
auto pButton::minimumSize() const -> Size {
auto size = pFont::size(qtWidget->font(), state().text ? state().text : " ");
auto size = pFont::size(qtWidget->font(), state().text ? state().text : " "_s);
if(state().orientation == Orientation::Horizontal) {
size.setWidth(size.width() + state().icon.width());