Merge pull request #9255 from thalieht/filterRegex

Add option to use regexps in the transfer list's search filter's context menu
This commit is contained in:
sledgehammer999 2018-08-12 16:22:00 +03:00 committed by GitHub
commit a3172590d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
{