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,6 +18,8 @@
|
||||
|
||||
#include "RimCellFilterIntervalTool.h"
|
||||
|
||||
#include "RiaTextStringTools.h"
|
||||
|
||||
#include <QStringList>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -104,11 +106,11 @@ void RimCellFilterIntervalTool::setInterval( bool enabled, QString intervalText
|
||||
|
||||
if ( !enabled ) return;
|
||||
|
||||
QStringList parts = intervalText.split( ',', QString::SkipEmptyParts );
|
||||
QStringList parts = RiaTextStringTools::splitSkipEmptyParts( intervalText, "," );
|
||||
|
||||
for ( auto& part : parts )
|
||||
{
|
||||
QStringList minmax = part.split( '-', QString::SkipEmptyParts );
|
||||
QStringList minmax = RiaTextStringTools::splitSkipEmptyParts( part, "-" );
|
||||
switch ( minmax.size() )
|
||||
{
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user