libyui-qt-pkg  2.42.5
 All Classes Functions Variables Enumerations
YQPkgPatternCategoryItem Class Reference
Inheritance diagram for YQPkgPatternCategoryItem:
Collaboration diagram for YQPkgPatternCategoryItem:

Public Member Functions

 YQPkgPatternCategoryItem (YQPkgPatternList *patternList, const QString &category)
 
virtual ~YQPkgPatternCategoryItem ()
 
ZyppPattern firstPattern () const
 
void addPattern (ZyppPattern pattern)
 
virtual bool operator< (const QTreeWidgetItem &other) const
 
virtual void setExpanded (bool open)
 

Protected Member Functions

void setTreeIcon (void)
 

Protected Attributes

YQPkgPatternList_patternList
 
ZyppPattern _firstPattern
 

Detailed Description

Definition at line 258 of file YQPkgPatternList.h.

Constructor & Destructor Documentation

YQPkgPatternCategoryItem::YQPkgPatternCategoryItem ( YQPkgPatternList patternList,
const QString &  category 
)

Constructor

Definition at line 592 of file YQPkgPatternList.cc.

Here is the call graph for this function:

YQPkgPatternCategoryItem::~YQPkgPatternCategoryItem ( )
virtual

Destructor

Definition at line 604 of file YQPkgPatternList.cc.

Member Function Documentation

void YQPkgPatternCategoryItem::addPattern ( ZyppPattern  pattern)

Add a pattern to this category. This method sets firstPattern() if necessary.

Definition at line 610 of file YQPkgPatternList.cc.

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.

bool YQPkgPatternCategoryItem::operator< ( const QTreeWidgetItem &  other) const
virtual

sorting function

Definition at line 643 of file YQPkgPatternList.cc.

Here is the call graph for this function:

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 633 of file YQPkgPatternList.cc.


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