◆ ExcludeRule()
YQPkgObjList::ExcludeRule::ExcludeRule |
( |
YQPkgObjList * | parent, |
|
|
const QRegExp & | regexp, |
|
|
int | column = 0 ) |
Constructor: Creates a new exclude rule with a regular expression to check against the text of the specified column of each list entry.
The parent YQPkgObjList will assume ownership of this exclude rule and destroy it when the parent is destroyed.
◆ column()
int YQPkgObjList::ExcludeRule::column |
( |
| ) |
const |
|
inline |
Returns the column number.
◆ enable()
void YQPkgObjList::ExcludeRule::enable |
( |
bool | enable = true | ) |
|
Enable or disable this exclude rule. New exclude rules are enabled by default.
◆ isEnabled()
bool YQPkgObjList::ExcludeRule::isEnabled |
( |
| ) |
const |
|
inline |
Returns 'true' if this exclude rule is enabled, 'false' otherwise.
◆ match()
bool YQPkgObjList::ExcludeRule::match |
( |
QTreeWidgetItem * | item | ) |
|
Check a list item against this exclude rule. Returns 'true' if the item matches this exclude rule, i.e. if it should be excluded.
◆ parent()
◆ regexp()
QRegExp YQPkgObjList::ExcludeRule::regexp |
( |
| ) |
const |
|
inline |
◆ setColumn()
void YQPkgObjList::ExcludeRule::setColumn |
( |
int | column = 0 | ) |
|
Change the column number to check against after creation.
◆ setRegexp()
void YQPkgObjList::ExcludeRule::setRegexp |
( |
const QRegExp & | regexp | ) |
|
Change the regular expression after creation.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt-pkg/src/YQPkgObjList.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt-pkg/src/YQPkgObjList.cc