mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4003 Use the preferences settings when creating default summary plots.
Refactored to make assigning default curve appearance easier.
This commit is contained in:
@@ -644,6 +644,24 @@ std::string RifEclipseSummaryAddress::uiText(RifEclipseSummaryAddress::SummaryId
|
||||
return "";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifEclipseSummaryAddress::isUiTextMatchingFilterText(const QString& filterString) const
|
||||
{
|
||||
std::string value = uiText();
|
||||
if(filterString.isEmpty()) return true;
|
||||
if(filterString.trimmed() == "*")
|
||||
{
|
||||
if(!value.empty()) return true;
|
||||
else return false;
|
||||
}
|
||||
|
||||
QRegExp searcher(filterString, Qt::CaseInsensitive, QRegExp::WildcardUnix);
|
||||
QString qstrValue = QString::fromStdString(value);
|
||||
return searcher.exactMatch(qstrValue);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user