libyui-qt-pkg  2.45.6
 All Classes Functions Variables Enumerations
YQPkgObjList::ExcludeRule Class Reference

Public Member Functions

 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. More...
 
void enable (bool enable=true)
 Enable or disable this exclude rule. More...
 
bool isEnabled () const
 Returns 'true' if this exclude rule is enabled, 'false' otherwise.
 
void setRegexp (const QRegExp &regexp)
 Change the regular expression after creation.
 
QRegExp regexp () const
 Returns the regexp.
 
void setColumn (int column=0)
 Change the column number to check against after creation.
 
int column () const
 Returns the column number.
 
YQPkgObjListparent () const
 Returns this exclude rule's parent YQPkgObjList.
 
bool match (QTreeWidgetItem *item)
 Check a list item against this exclude rule. More...
 

Detailed Description

Definition at line 701 of file YQPkgObjList.h.

Constructor & Destructor Documentation

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 1592 of file YQPkgObjList.cc.

Here is the call graph for this function:

Member Function Documentation

void YQPkgObjList::ExcludeRule::enable ( bool  enable = true)

Enable or disable this exclude rule.

New exclude rules are enabled by default.

Definition at line 1605 of file YQPkgObjList.cc.

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 1632 of file YQPkgObjList.cc.


The documentation for this class was generated from the following files: