refactor: floatify messages (#6231)

This commit is contained in:
nerix
2025-05-24 11:40:11 +02:00
committed by GitHub
parent 8782533457
commit b78e1ed0a7
18 changed files with 303 additions and 255 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ QFont Fonts::getFont(FontStyle type, float scale)
return this->getOrCreateFontData(type, scale).font;
}
QFontMetrics Fonts::getFontMetrics(FontStyle type, float scale)
QFontMetricsF Fonts::getFontMetrics(FontStyle type, float scale)
{
return this->getOrCreateFontData(type, scale).metrics;
}
+2 -2
View File
@@ -46,7 +46,7 @@ public:
// font data gets set in createFontData(...)
QFont getFont(FontStyle type, float scale);
QFontMetrics getFontMetrics(FontStyle type, float scale);
QFontMetricsF getFontMetrics(FontStyle type, float scale);
pajlada::Signals::NoArgSignal fontChanged;
@@ -59,7 +59,7 @@ private:
}
const QFont font;
const QFontMetrics metrics;
const QFontMetricsF metrics;
};
struct ChatFontData {