#include "blockerrule.h" BlockerRule::BlockerRule(QString rule, QObject *parent) : QObject(parent) { ruleExpression.setPattern(rule); } bool BlockerRule::match(const QUrl &url) { return ruleExpression.match(url.toString()).hasMatch(); }