#include <YQPkgClassFilterView.h>
Public Slots | |
void | filter () |
void | filterIfVisible () |
Signals | |
void | filterStart () |
void | filterMatch (ZyppSel selectable, ZyppPkg pkg) |
void | filterFinished () |
Public Member Functions | |
YQPkgClassFilterView (QWidget *parent) | |
virtual | ~YQPkgClassFilterView () |
bool | check (ZyppSel selectable, ZyppPkg pkg) |
bool | checkMatch (ZyppSel selectable, ZyppPkg pkg) |
YQPkgClass | selectedPkgClass () const |
void | showPkgClass (YQPkgClass pkgClass) |
Protected Slots | |
void | slotSelectionChanged (QTreeWidgetItem *newSelection) |
Protected Member Functions | |
void | fillPkgClasses () |
Filter view for package classes (categories) like suggested, recommended, orphaned etc. packages. See enum YPkgClass.
YQPkgClassFilterView::YQPkgClassFilterView | ( | QWidget * | parent | ) |
Constructor
|
virtual |
Destructor
bool YQPkgClassFilterView::check | ( | ZyppSel | selectable, |
ZyppPkg | pkg ) |
Check if 'pkg' matches the selected package class and send a filterMatch signal if it does.
Returns 'true' if there is a match, 'false' otherwise.
bool YQPkgClassFilterView::checkMatch | ( | ZyppSel | selectable, |
ZyppPkg | pkg ) |
Check if 'pkg' matches the selected package class. Returns 'true' if there is a match, 'false' otherwise.
|
slot |
Filter according to the view's rules and current selection. Emits those signals: filterStart() filterMatch() for each pkg that matches the filter filterFinished()
|
signal |
Emitted when filtering is finished.
|
slot |
Same as filter(), but only if this widget is currently visible.
|
signal |
Emitted during filtering for each pkg that matches the filter.
|
signal |
Emitted when the filtering starts. Use this to clear package lists etc. prior to adding new entries.
YQPkgClass YQPkgClassFilterView::selectedPkgClass | ( | ) | const |
Returns the currently selected YQPkgClass
void YQPkgClassFilterView::showPkgClass | ( | YQPkgClass | pkgClass | ) |
Show the specified package class, i.e. select that filter.