mirror of https://github.com/bsnes-emu/bsnes
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:
parent
64a433a644
commit
b3ce74253e
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue