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:
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "RicAppendPointsToPolygonFilterFeature.h"
|
||||
|
||||
CAF_CMD_SOURCE_INIT( RicAppendPointsToPolygonFilterFeature, "RicAppendPointsToPolygonFilterFeature" );
|
||||
#include "RiaTextStringTools.h"
|
||||
|
||||
#include "RimPolygonFilter.h"
|
||||
#include "RimPolylineTarget.h"
|
||||
@@ -30,6 +30,8 @@ CAF_CMD_SOURCE_INIT( RicAppendPointsToPolygonFilterFeature, "RicAppendPointsToPo
|
||||
#include <QAction>
|
||||
#include <QClipboard>
|
||||
|
||||
CAF_CMD_SOURCE_INIT( RicAppendPointsToPolygonFilterFeature, "RicAppendPointsToPolygonFilterFeature" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -62,7 +64,7 @@ void RicAppendPointsToPolygonFilterFeature::onActionTriggered( bool isChecked )
|
||||
if ( clipboard )
|
||||
{
|
||||
QString content = clipboard->text();
|
||||
listOfThreeDoubles = content.split( "\n", QString::SkipEmptyParts );
|
||||
listOfThreeDoubles = RiaTextStringTools::splitSkipEmptyParts( content, "\n" );
|
||||
}
|
||||
|
||||
std::vector<cvf::Vec3d> points;
|
||||
|
||||
Reference in New Issue
Block a user