Call history: Search into display name and address.
This commit is contained in:
parent
593863b4c2
commit
550295fbe4
1 changed files with 1 additions and 2 deletions
|
|
@ -59,8 +59,7 @@ bool CallHistoryProxy::SortFilterList::filterAcceptsRow(int sourceRow, const QMo
|
||||||
QRegularExpression::CaseInsensitiveOption |
|
QRegularExpression::CaseInsensitiveOption |
|
||||||
QRegularExpression::UseUnicodePropertiesOption);
|
QRegularExpression::UseUnicodePropertiesOption);
|
||||||
auto callLog = getItemAtSource<CallHistoryList, CallHistoryCore>(sourceRow);
|
auto callLog = getItemAtSource<CallHistoryList, CallHistoryCore>(sourceRow);
|
||||||
show =
|
show = callLog->mDisplayName.contains(search) || callLog->mRemoteAddress.contains(search);
|
||||||
callLog->mIsConference ? callLog->mDisplayName.contains(search) : callLog->mRemoteAddress.contains(search);
|
|
||||||
}
|
}
|
||||||
return show;
|
return show;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue