refactor: floatify messages (#6231)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user