From 295b6c3c17fcc98d6651d1f1ccf41fbbbe180424 Mon Sep 17 00:00:00 2001 From: Razzile Date: Sun, 13 Aug 2023 20:03:29 +0100 Subject: [PATCH] [Qt] Fix tab text cutting off at some resolutions --- src/xenia/ui/qt/widgets/tab_selector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/ui/qt/widgets/tab_selector.cc b/src/xenia/ui/qt/widgets/tab_selector.cc index 973f167735..402b4e4242 100644 --- a/src/xenia/ui/qt/widgets/tab_selector.cc +++ b/src/xenia/ui/qt/widgets/tab_selector.cc @@ -36,7 +36,7 @@ void XTabSelector::Build() { font_.setPixelSize(font_size_); QFontMetrics metrics(font_); QRect rect = metrics.boundingRect(tab_name); - int width = rect.width(); + int width = metrics.horizontalAdvance(tab_name); int height = rect.height(); // Translate rect to proper widget position