libyui-qt-pkg  2.45.13.1
YQPkgPatternCategoryItem Class Reference
Inheritance diagram for YQPkgPatternCategoryItem:
Collaboration diagram for YQPkgPatternCategoryItem:

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
 

Detailed Description

Definition at line 258 of file YQPkgPatternList.h.

Member Function Documentation

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.

Here is the call graph for this function:

ZyppPattern YQPkgPatternCategoryItem::firstPattern ( ) const
inline

Returns the first pattern.

This should be the first in sort order.

Definition at line 276 of file YQPkgPatternList.h.

void YQPkgPatternCategoryItem::setTreeIcon ( void  )
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.


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