libyui-qt-pkg
2.42.13
|
Public Member Functions | |
YQPkgPatchCategoryItem (YQPkgPatchCategory category, YQPkgPatchList *patternList) | |
virtual | ~YQPkgPatchCategoryItem () |
ZyppPatch | firstPatch () const |
void | addPatch (ZyppPatch patch) |
virtual bool | operator< (const QTreeWidgetItem &other) const |
virtual void | setExpanded (bool open) |
YQPkgPatchCategory | category () const |
Static Public Member Functions | |
static YQPkgPatchCategory | patchCategory (QString category) |
static YQPkgPatchCategory | patchCategory (const string &category) |
static QString | asString (YQPkgPatchCategory category) |
Protected Member Functions | |
void | setTreeIcon (void) |
Protected Attributes | |
YQPkgPatchCategory | _category |
YQPkgPatchList * | _patchList |
ZyppPatch | _firstPatch |
Definition at line 320 of file YQPkgPatchList.h.
YQPkgPatchCategoryItem::YQPkgPatchCategoryItem | ( | YQPkgPatchCategory | category, |
YQPkgPatchList * | patternList | ||
) |
Constructor
Definition at line 567 of file YQPkgPatchList.cc.
|
virtual |
Destructor
Definition at line 628 of file YQPkgPatchList.cc.
void YQPkgPatchCategoryItem::addPatch | ( | ZyppPatch | patch | ) |
Add a pattern to this category. This method sets firstPatch() if necessary.
Definition at line 634 of file YQPkgPatchList.cc.
|
static |
Converts a patch category to a user-readable (translated) string.
Definition at line 611 of file YQPkgPatchList.cc.
|
inline |
Category (and order ) for this item
Definition at line 370 of file YQPkgPatchList.h.
|
inline |
Returns the first pattern. This should be the first in sort order.
Definition at line 337 of file YQPkgPatchList.h.
|
virtual |
sorting function
Definition at line 667 of file YQPkgPatchList.cc.
|
static |
Maps a string patch category to the corresponding enum.
Definition at line 595 of file YQPkgPatchList.cc.
|
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 657 of file YQPkgPatchList.cc.