mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5391 Fix page sizes for Well Log Plots
This commit is contained in:
parent
23e6bc2e86
commit
d5b6923c44
@ -98,7 +98,14 @@ RiuMultiPlotPage::RiuMultiPlotPage( RimPlotWindow* plotDefinition, QWidget* pare
|
||||
|
||||
new RiuPlotObjectPicker( m_plotTitle, m_plotDefinition );
|
||||
|
||||
if ( m_previewMode )
|
||||
{
|
||||
this->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
|
||||
}
|
||||
else
|
||||
{
|
||||
this->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
|
||||
}
|
||||
|
||||
setFocusPolicy( Qt::StrongFocus );
|
||||
|
||||
@ -459,6 +466,8 @@ void RiuMultiPlotPage::updateMarginsFromPageLayout()
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QSize RiuMultiPlotPage::sizeHint() const
|
||||
{
|
||||
if ( m_previewMode )
|
||||
{
|
||||
QPageLayout pageLayout = RiaApplication::instance()->preferences()->defaultPageLayout();
|
||||
if ( m_plotDefinition )
|
||||
@ -470,6 +479,8 @@ QSize RiuMultiPlotPage::sizeHint() const
|
||||
QRect rect = pageLayout.fullRectPixels( resolution );
|
||||
return rect.size();
|
||||
}
|
||||
return QWidget::sizeHint();
|
||||
}
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user