libyui-qt-pkg
2.42.5
|
Public Member Functions | |
ExcludeRule (YQPkgObjList *parent, const QRegExp ®exp, int column=0) | |
void | enable (bool enable=true) |
bool | isEnabled () const |
void | setRegexp (const QRegExp ®exp) |
QRegExp | regexp () const |
void | setColumn (int column=0) |
int | column () const |
YQPkgObjList * | parent () const |
bool | match (QTreeWidgetItem *item) |
Definition at line 701 of file YQPkgObjList.h.
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.
Definition at line 1595 of file YQPkgObjList.cc.
|
inline |
Returns the column number.
Definition at line 754 of file YQPkgObjList.h.
void YQPkgObjList::ExcludeRule::enable | ( | bool | enable = true | ) |
Enable or disable this exclude rule. New exclude rules are enabled by default.
Definition at line 1608 of file YQPkgObjList.cc.
|
inline |
Returns 'true' if this exclude rule is enabled, 'false' otherwise.
Definition at line 734 of file YQPkgObjList.h.
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.
Definition at line 1635 of file YQPkgObjList.cc.
|
inline |
Returns this exclude rule's parent YQPkgObjList.
Definition at line 759 of file YQPkgObjList.h.
|
inline |
Returns the regexp.
Definition at line 744 of file YQPkgObjList.h.
void YQPkgObjList::ExcludeRule::setColumn | ( | int | column = 0 | ) |
Change the column number to check against after creation.
Definition at line 1628 of file YQPkgObjList.cc.
void YQPkgObjList::ExcludeRule::setRegexp | ( | const QRegExp & | regexp | ) |
Change the regular expression after creation.
Definition at line 1621 of file YQPkgObjList.cc.