Add option for regexps in the transferlist search filter's context menu

This commit is contained in:
thalieht 2018-07-29 15:46:19 +03:00 committed by sledgehammer999
commit 052206efa1
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
5 changed files with 36 additions and 2 deletions

View file

@ -1509,6 +1509,16 @@ void Preferences::setTransHeaderState(const QByteArray &state)
setValue("TransferList/qt5/HeaderState", state);
}
bool Preferences::getRegexAsFilteringPattern() const
{
return value("TransferList/UseRegexAsFilteringPattern", false).toBool();
}
void Preferences::setRegexAsFilteringPattern(const bool checked)
{
setValue("TransferList/UseRegexAsFilteringPattern", checked);
}
// From old RssSettings class
bool Preferences::isRSSWidgetEnabled() const
{