mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6771 Regression Test: Replace QMessageBox with RiaLogging::errorInMessageBox
Fix typo Includes
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "RimAnnotationCollection.h"
|
||||
|
||||
#include "RiaColorTables.h"
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RimAnnotationGroupCollection.h"
|
||||
#include "RimAnnotationLineAppearance.h"
|
||||
@@ -31,7 +32,6 @@
|
||||
#include "RimGridView.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QString>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimAnnotationCollection, "RimAnnotationCollection" );
|
||||
@@ -273,7 +273,7 @@ void RimAnnotationCollection::reloadPolylinesFromFile( const std::vector<RimPoly
|
||||
|
||||
if ( !totalErrorMessage.isEmpty() )
|
||||
{
|
||||
QMessageBox::warning( nullptr, "Import Polylines", totalErrorMessage );
|
||||
RiaLogging::errorInMessageBox( nullptr, "Import Polylines", totalErrorMessage );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "RimPolylinesFromFileAnnotation.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RigPolyLinesData.h"
|
||||
#include "RimAnnotationCollection.h"
|
||||
#include "RimAnnotationLineAppearance.h"
|
||||
@@ -26,7 +27,6 @@
|
||||
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QMessageBox>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimPolylinesFromFileAnnotation, "PolylinesFromFileAnnotation" );
|
||||
|
||||
@@ -204,7 +204,7 @@ void RimPolylinesFromFileAnnotation::fieldChangedByUi( const caf::PdmFieldHandle
|
||||
if ( !errorMessage.isEmpty() )
|
||||
{
|
||||
QString totalError = "\nError in: " + this->fileName() + "\n\t" + errorMessage;
|
||||
QMessageBox::warning( nullptr, "Import Polylines", totalError );
|
||||
RiaLogging::errorInMessageBox( nullptr, "Import Polylines", totalError );
|
||||
}
|
||||
}
|
||||
else if ( changedField == &m_showLines )
|
||||
|
||||
Reference in New Issue
Block a user