mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix a Qt warning for getContentsMargins
This commit is contained in:
parent
8f5c38cb8e
commit
6220ff160c
@ -49,10 +49,10 @@ void RiuQwtPlotLegend::resizeEvent( QResizeEvent* event )
|
||||
const QwtDynGridLayout* legendLayout = qobject_cast<QwtDynGridLayout*>( contentsWidget()->layout() );
|
||||
if ( legendLayout )
|
||||
{
|
||||
int left, right, top, bottom;
|
||||
getContentsMargins( &left, &top, &right, &bottom );
|
||||
QMargins margins = this->contentsMargins();
|
||||
|
||||
m_columnCount = std::max( 1, (int)legendLayout->columnsForWidth( size.width() - left - right ) );
|
||||
m_columnCount =
|
||||
std::max( 1, (int)legendLayout->columnsForWidth( size.width() - margins.left() - margins.right() ) );
|
||||
|
||||
updateGeometry();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user