messageviewer
adblocksettingwidget.cpp
Go to the documentation of this file.
62 hintLabel->setText(i18n("<qt>Filter expression (e.g. <tt>http://www.example.com/ad/*</tt>, <a href=\"filterhelp\">more information</a>):"));
76 connect(manualFiltersListWidget, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), this, SLOT(slotUpdateManualButtons()));
90 connect(automaticFiltersListWidget, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(hasChanged()));
91 connect(automaticFiltersListWidget, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), this, SLOT(slotUpdateButtons()));
92 connect(automaticFiltersListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(slotAutomaticFilterDouble(QListWidgetItem*)));
96 connect(addFilterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotManualFilterLineEditTextChanged(QString)));
133 const QString hintHelpString = i18n("<qt><p>Enter an expression to filter. Filters can be defined as either:"
204 const QStringList itemList = config.groupList().filter( QRegExp( QLatin1String("FilterList \\d+") ) );
216 subItem->setFlags(Qt::ItemIsEnabled | Qt::ItemIsUserCheckable| Qt::ItemIsSelectable | Qt::ItemIsDragEnabled);
260 const QStringList list = config.groupList().filter( QRegExp( QLatin1String("FilterList \\d+") ) );
276 path = KStandardDirs::locateLocal("data", QString::fromLatin1("kmail2/adblockrules-%1").arg(i));
332 QPointer<MessageViewer::AdBlockAddSubscriptionDialog> dlg = new MessageViewer::AdBlockAddSubscriptionDialog(excludeList, this);
338 subItem->setFlags(Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled);
353 if (KMessageBox::questionYesNo(this, i18n("Do you want to delete list \"%1\"?", item->text()), i18n("Delete current list")) == KMessageBox::Yes) {
Qt::CheckState checkState() const
void setupUi(QWidget *widget)
QString readLine(qint64 maxlen)
bool changed() const
Definition: adblocksettingwidget.cpp:320
bool remove()
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QDateTime toDateTime() const
QStyle * style() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
Qt::ItemFlags flags() const
void clear()
const char * name() const
enabled
void append(const T &value)
bool atEnd() const
bool isEmpty() const
void setFlags(QFlags< Qt::ItemFlag > flags)
bool isEmpty() const
QString trimmed() const
virtual QVariant data(int role) const
QPoint pos() const
void setCheckState(Qt::CheckState state)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual void setData(int role, const QVariant &value)
bool isValid() const
void doLoadFromGlobalSettings()
Definition: adblocksettingwidget.cpp:188
void doResetToDefaultsOther()
Definition: adblocksettingwidget.cpp:178
QString fromLatin1(const char *str, int size)
QStringList filter(const QString &str, Qt::CaseSensitivity cs) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
QString text() const
void setText(const QString &text)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.