mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix several deprecation warnings (#8657)
* Use constructor instead of nullptr for WindowFlags * Use constructor instead of nullptr for Alignment * Disable deprecation warning for QProcess * Add string split method to RaTextStringTools * Add caf.cpp used to manage Qt function deprecations * Use position()
This commit is contained in:
@@ -627,17 +627,12 @@ void RiuMultiPlotPage::reinsertPlotWidgets()
|
||||
plotWidgets[visibleIndex]->setAxesFontsAndAlignment( m_axisTitleFontSize, m_axisValueFontSize );
|
||||
|
||||
{
|
||||
int left = 0;
|
||||
int top = 0;
|
||||
int right = 0;
|
||||
int bot = 0;
|
||||
|
||||
plotWidgets[visibleIndex]->getContentsMargins( &left, &top, &right, &bot );
|
||||
bot = 40;
|
||||
auto margins = plotWidgets[visibleIndex]->contentsMargins();
|
||||
margins.setBottom( 40 );
|
||||
|
||||
// Adjust the space below a graph to make sure the heading of the row below is closest to the
|
||||
// corresponding graph
|
||||
plotWidgets[visibleIndex]->setContentsMargins( left, top, right, bot );
|
||||
plotWidgets[visibleIndex]->setContentsMargins( margins );
|
||||
}
|
||||
|
||||
plotWidgets[visibleIndex]->show();
|
||||
|
||||
Reference in New Issue
Block a user