Display all data if multiple fractures crosses a cell

- add the operator<=> for QString
- add operator<=> to fracture report item
This commit is contained in:
Magne Sjaastad
2023-05-12 12:41:52 +02:00
parent 2b0906c2ab
commit 37e29a0f68
6 changed files with 27 additions and 24 deletions

View File

@@ -174,3 +174,11 @@ QStringList RiaTextStringTools::splitSkipEmptyParts( const QString& text, const
return text.split( regExp, QString::SkipEmptyParts );
#endif
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs )
{
return lhs.compare( rhs ) <=> 0;
}

View File

@@ -40,3 +40,17 @@ QStringList splitSkipEmptyParts( const QString& text, const QRegExp& regExp );
QString replaceTemplateTextWithValues( const QString& templateText, const std::map<QString, QString>& valueMap );
} // namespace RiaTextStringTools
//--------------------------------------------------------------------------------------------------
//
// Add operator<=> for QString to global scope
//
// Example of error message when this operator is not defined:
//
// 'auto RicWellPathFractureReportItem::operator <=>(const RicWellPathFractureReportItem &) const'
// : function was implicitly deleted because 'RicWellPathFractureReportItem' data member
// 'RicWellPathFractureReportItem::m_wellPathNameForExport' of type 'QString' has no valid
// 'operator<=>'
//
//--------------------------------------------------------------------------------------------------
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs );