From 935b30b17ab410c401b58974b45c74ee10c8486a Mon Sep 17 00:00:00 2001 From: Tim Delaney Date: Sun, 6 Nov 2016 16:53:06 +1100 Subject: [PATCH] RSS use red text to indicate invalid filter. Closes #6165. --HG-- branch : magao-dev --- src/gui/rss/automatedrssdownloader.cpp | 19 ++++++++++++++++--- src/gui/rss/automatedrssdownloader.h | 2 +- src/gui/rss/automatedrssdownloader.ui | 10 ++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/gui/rss/automatedrssdownloader.cpp b/src/gui/rss/automatedrssdownloader.cpp index cd253f849..6288f4397 100644 --- a/src/gui/rss/automatedrssdownloader.cpp +++ b/src/gui/rss/automatedrssdownloader.cpp @@ -73,8 +73,6 @@ AutomatedRssDownloader::AutomatedRssDownloader(const QWeakPointer m_editableRuleList = new Rss::DownloadRuleList; // Read rule list from disk m_episodeRegex = new QRegExp("^(^[1-9]{1,1}\\d{0,3}x([1-9]{1,1}\\d{0,3}(-([1-9]{1,1}\\d{0,3})?)?;){1,}){1,1}", Qt::CaseInsensitive); - m_episodeValidator = new QRegExpValidator(*m_episodeRegex, ui->lineEFilter); - ui->lineEFilter->setValidator(m_episodeValidator); QString tip = "

" + tr("Matches articles based on episode filter.") + "

" + tr("Example: ") + "1x2;8-15;5;30-;" + tr(" will match 2, 5, 8 through 15, 30 and onward episodes of season one", "example X will match") + "

"; tip += "

" + tr("Episode filter rules: ") + "