mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Minor improvements to well log track layout
This commit is contained in:
parent
1095165a64
commit
c72532eb4e
@ -98,7 +98,7 @@ RiuMultiPlotPage::RiuMultiPlotPage( RimPlotWindow* plotDefinition, QWidget* pare
|
|||||||
|
|
||||||
new RiuPlotObjectPicker( m_plotTitle, m_plotDefinition );
|
new RiuPlotObjectPicker( m_plotTitle, m_plotDefinition );
|
||||||
|
|
||||||
this->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding );
|
this->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
|
||||||
|
|
||||||
setFocusPolicy( Qt::StrongFocus );
|
setFocusPolicy( Qt::StrongFocus );
|
||||||
|
|
||||||
@ -627,7 +627,7 @@ void RiuMultiPlotPage::reinsertPlotWidgets()
|
|||||||
}
|
}
|
||||||
for ( int c = column; c < column + colSpan; ++c )
|
for ( int c = column; c < column + colSpan; ++c )
|
||||||
{
|
{
|
||||||
int colStretch = 6;
|
int colStretch = 6; // Empirically chosen to try to counter the width of the axis on the first track
|
||||||
if ( showYAxis( row, column ) ) colStretch += 1;
|
if ( showYAxis( row, column ) ) colStretch += 1;
|
||||||
m_gridLayout->setColumnStretch( c, std::max( colStretch, m_gridLayout->columnStretch( c ) ) );
|
m_gridLayout->setColumnStretch( c, std::max( colStretch, m_gridLayout->columnStretch( c ) ) );
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ RiuQwtPlotLegend::RiuQwtPlotLegend( QWidget* parent /*= nullptr */ )
|
|||||||
{
|
{
|
||||||
legendLayout->setExpandingDirections( Qt::Horizontal | Qt::Vertical );
|
legendLayout->setExpandingDirections( Qt::Horizontal | Qt::Vertical );
|
||||||
}
|
}
|
||||||
|
setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -74,6 +74,8 @@ RiuQwtPlotWidget::RiuQwtPlotWidget( RimPlot* plotDefinition, QWidget* parent )
|
|||||||
|
|
||||||
this->installEventFilter( this );
|
this->installEventFilter( this );
|
||||||
this->canvas()->installEventFilter( this );
|
this->canvas()->installEventFilter( this );
|
||||||
|
|
||||||
|
this->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user