mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use correct qt version check for SkipEmptyParts
Qt::SkipEmptyParts was introduced in Qt 5.14 and QString::SkipEmptyParts was deprecated in Qt 5.15. This will avoid warnings when compiling with Qt 5.15.
This commit is contained in:
parent
e94ac51568
commit
5cfabbb8b8
@ -328,7 +328,7 @@ PdmObjectHandle* PdmReferenceHelper::objectFromFieldReference( PdmFieldHandle* f
|
||||
if ( reference.isEmpty() ) return nullptr;
|
||||
if ( reference.trimmed().isEmpty() ) return nullptr;
|
||||
|
||||
#if ( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) )
|
||||
#if ( QT_VERSION < QT_VERSION_CHECK( 5, 14, 0 ) )
|
||||
auto SkipEmptyParts = QString::SkipEmptyParts;
|
||||
#else
|
||||
auto SkipEmptyParts = Qt::SkipEmptyParts;
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
#if ( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) )
|
||||
#if ( QT_VERSION < QT_VERSION_CHECK( 5, 14, 0 ) )
|
||||
auto SkipEmptyParts = QString::SkipEmptyParts;
|
||||
#else
|
||||
auto SkipEmptyParts = Qt::SkipEmptyParts;
|
||||
|
@ -598,7 +598,7 @@ void PdmUiTreeSelectionEditor::slotInvertCheckedStateOfAll()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTreeSelectionEditor::setCheckedStateForIntegerItemsMatchingFilter()
|
||||
{
|
||||
#if ( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) )
|
||||
#if ( QT_VERSION < QT_VERSION_CHECK( 5, 14, 0 ) )
|
||||
auto SkipEmptyParts = QString::SkipEmptyParts;
|
||||
#else
|
||||
auto SkipEmptyParts = Qt::SkipEmptyParts;
|
||||
|
Loading…
Reference in New Issue
Block a user