From ae24db1da0e087f86f23cb2e5fdde00e3c5f95f8 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 3 Feb 2024 23:26:25 +0100 Subject: [PATCH] Fixed iconsize issue with fontmetrics on macos --- retroshare-gui/src/gui/common/LineEditClear.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retroshare-gui/src/gui/common/LineEditClear.cpp b/retroshare-gui/src/gui/common/LineEditClear.cpp index c3d68b512..a6ba67bfa 100644 --- a/retroshare-gui/src/gui/common/LineEditClear.cpp +++ b/retroshare-gui/src/gui/common/LineEditClear.cpp @@ -234,8 +234,10 @@ void LineEditClear::setFilterButtonIcon(const QIcon &icon) mFilterButton->setIcon(icon); ensurePolished(); +#if !defined(Q_OS_DARWIN) QFontMetrics fm(this->font()); QSize size(fm.width("___"), fm.height()); mFilterButton->setFixedSize(size); mFilterButton->setIconSize(size); +#endif }