libyui-qt-pkg
2.45.6
|
Public Member Functions | |
YQPkgPatternCategoryItem (YQPkgPatternList *patternList, const QString &category) | |
Constructor. | |
virtual | ~YQPkgPatternCategoryItem () |
Destructor. | |
ZyppPattern | firstPattern () const |
Returns the first pattern. More... | |
void | addPattern (ZyppPattern pattern) |
Add a pattern to this category. More... | |
virtual bool | operator< (const QTreeWidgetItem &other) const |
sorting function | |
virtual void | setExpanded (bool open) |
Protected Member Functions | |
void | setTreeIcon (void) |
Set a suitable tree open/close icon depending on this category's open/close status. More... | |
Protected Attributes | |
YQPkgPatternList * | _patternList |
ZyppPattern | _firstPattern |
Definition at line 258 of file YQPkgPatternList.h.
void YQPkgPatternCategoryItem::addPattern | ( | ZyppPattern | pattern | ) |
Add a pattern to this category.
This method sets firstPattern() if necessary.
Definition at line 608 of file YQPkgPatternList.cc.
|
inline |
Returns the first pattern.
This should be the first in sort order.
Definition at line 276 of file YQPkgPatternList.h.
|
protected |
Set a suitable tree open/close icon depending on this category's open/close status.
The default QListView plus/minus icons would require treeStepSize() to be set >0 and rootItemDecorated( true ), but that would look very ugly in this context, so the pattern categories paint their own tree open / close icons.
Definition at line 631 of file YQPkgPatternList.cc.