mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Multi page plot works
This commit is contained in:
@@ -116,6 +116,7 @@
|
||||
#include "cvfqtUtils.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDesktopWidget>
|
||||
#include <QDir>
|
||||
#include <QErrorMessage>
|
||||
#include <QFileDialog>
|
||||
@@ -1718,6 +1719,18 @@ void RiaGuiApplication::applyGuiPreferences( const RiaPreferences* oldPreference
|
||||
{
|
||||
m_mainWindow->applyFontSizesToDockedPlots();
|
||||
}
|
||||
|
||||
if ( oldPreferences->defaultPageLayout() != m_preferences->defaultPageLayout() )
|
||||
{
|
||||
for ( RimViewWindow* viewWindow : allViewWindows )
|
||||
{
|
||||
RimPlotWindow* plotWindow = dynamic_cast<RimPlotWindow*>( viewWindow );
|
||||
if ( plotWindow )
|
||||
{
|
||||
plotWindow->updateLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<caf::PdmUiItem*> uiEditorsToUpdate;
|
||||
@@ -1752,6 +1765,14 @@ void RiaGuiApplication::updateGrpcServer()
|
||||
#endif
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RiaGuiApplication::applicationResolution()
|
||||
{
|
||||
return RiaGuiApplication::instance()->desktop()->logicalDpiX();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user