Use point size when defining font size

Avoid pixel size for easier config across multiple environments
Set default font size for plots to 10 points
Use Small instead of XSmall for default font in plot
Remove pt postfix to indicate point size
This commit is contained in:
Magne Sjaastad committed 2025-03-10 16:56:16 +01:00
1 parent 559599c72d
commit 5f7823b8d3
34 files changed
+87 -116

No files matched your search

@@ -38,7 +38,7 @@ RiuTextContentFrame::RiuTextContentFrame( QWidget* parent, const QString& title,
: RiuAbstractOverlayContentFrame( parent )
, m_title( title )
, m_text( text )
, m_fontPixelSize( fontPixelSize )
, m_fontSize( fontPixelSize )
{
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum );
@@ -170,10 +170,10 @@ void RiuTextContentFrame::layoutInfo( LayoutInfo* layout ) const
//--------------------------------------------------------------------------------------------------
void RiuTextContentFrame::updateFontSize()
{
if ( m_fontPixelSize != -1 )
if ( m_fontSize != -1 )
{
QFont font = this->font();
font.setPixelSize( m_fontPixelSize );
font.setPointSize( m_fontSize );
setFont( font );
}
else