mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-05 05:37:10 -06:00
Copy changes from dev-branch into main
History of main branch was difficult to merge. Take a copy of dev-branch, and merge both ways between dev and main after the release.
This commit is contained in:
1 parent
5688838899
commit
06f9c6126d
1778 files changed
+35036
-12457
No files matched your search
@@ -90,7 +90,7 @@ void RiuScalarMapperLegendFrame::setScalarMapper( cvf::ScalarMapper* scalarMappe
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuScalarMapperLegendFrame::layoutInfo( LayoutInfo* layout ) const
|
||||
{
|
||||
QFontMetrics fontMetrics( this->font() );
|
||||
QFontMetrics fontMetrics( font() );
|
||||
QStringList titleLines = RiaTextStringTools::splitSkipEmptyParts( m_title, "\n" );
|
||||
|
||||
layout->charHeight = fontMetrics.height();
|
||||
@@ -208,9 +208,9 @@ QRect RiuScalarMapperLegendFrame::labelRect( const LayoutInfo& layout, int index
|
||||
{
|
||||
const int posX = layout.tickEndX + layout.tickTextLeadSpace;
|
||||
|
||||
QString labelI = this->label( index );
|
||||
QString labelI = label( index );
|
||||
|
||||
int width = this->fontMetrics().boundingRect( labelI ).width() + 4;
|
||||
int width = fontMetrics().boundingRect( labelI ).width() + 4;
|
||||
int height = layout.lineSpacing;
|
||||
|
||||
int posY = layout.colorBarRect.bottom() - layout.tickYPixelPos[index];
|
||||
|
||||
Reference in new issue
Block a user