mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove unused space caused by bottom margin
This commit is contained in:
@@ -78,6 +78,8 @@ RimPlotWindow::RimPlotWindow()
|
||||
|
||||
m_titleFontSize = caf::FontTools::RelativeSize::XXLarge;
|
||||
m_legendFontSize = caf::FontTools::RelativeSize::Large;
|
||||
|
||||
m_bottomMargin = -1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -286,6 +288,22 @@ QPageLayout RimPlotWindow::pageLayout() const
|
||||
return defaultPageLayout;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotWindow::setBottomMargin( int bottomMargin )
|
||||
{
|
||||
m_bottomMargin = bottomMargin;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RimPlotWindow::bottomMargin() const
|
||||
{
|
||||
return m_bottomMargin;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -86,6 +86,7 @@ public:
|
||||
|
||||
void renderWindowContent( QPaintDevice* painter );
|
||||
QPageLayout pageLayout() const;
|
||||
int bottomMargin() const;
|
||||
|
||||
virtual bool handleGlobalKeyEvent( QKeyEvent* keyEvent );
|
||||
virtual bool handleGlobalWheelEvent( QWheelEvent* wheelEvent );
|
||||
@@ -100,6 +101,7 @@ protected:
|
||||
void uiOrderingForLegendsAndFonts( QString uiConfigName, caf::PdmUiOrdering& uiOrdering, bool showLegendPosition = false );
|
||||
|
||||
void updateWindowVisibility();
|
||||
void setBottomMargin( int bottomMargin );
|
||||
|
||||
private:
|
||||
virtual void doUpdateLayout() {}
|
||||
@@ -122,4 +124,7 @@ protected:
|
||||
|
||||
caf::PdmField<caf::FontTools::RelativeSizeEnum> m_titleFontSize;
|
||||
caf::PdmField<caf::FontTools::RelativeSizeEnum> m_legendFontSize;
|
||||
|
||||
private:
|
||||
int m_bottomMargin;
|
||||
};
|
||||
|
||||
@@ -173,6 +173,8 @@ RimSummaryMultiPlot::RimSummaryMultiPlot()
|
||||
m_defaultStepDimension.uiCapability()->setUiHidden( true );
|
||||
|
||||
m_nameHelper = std::make_unique<RimSummaryPlotNameHelper>();
|
||||
|
||||
setBottomMargin( 40 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user