libyui-qt-pkg
2.47.5
|
Filter view for package classes (categories) like suggested, recommended, orphaned etc. More...
#include <YQPkgClassFilterView.h>
Public Slots | |
void | filter () |
Filter according to the view's rules and current selection. More... | |
void | filterIfVisible () |
Same as filter(), but only if this widget is currently visible. | |
Signals | |
void | filterStart () |
Emitted when the filtering starts. More... | |
void | filterMatch (ZyppSel selectable, ZyppPkg pkg) |
Emitted during filtering for each pkg that matches the filter. | |
void | filterFinished () |
Emitted when filtering is finished. | |
Public Member Functions | |
YQPkgClassFilterView (QWidget *parent) | |
Constructor. | |
virtual | ~YQPkgClassFilterView () |
Destructor. | |
bool | check (ZyppSel selectable, ZyppPkg pkg) |
Check if 'pkg' matches the selected package class and send a filterMatch signal if it does. More... | |
bool | checkMatch (ZyppSel selectable, ZyppPkg pkg) |
Check if 'pkg' matches the selected package class. More... | |
YQPkgClass | selectedPkgClass () const |
Returns the currently selected YQPkgClass. | |
void | showPkgClass (YQPkgClass pkgClass) |
Show the specified package class, i.e. More... | |
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.
Definition at line 70 of file YQPkgClassFilterView.h.
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.
Definition at line 225 of file YQPkgClassFilterView.cc.
bool YQPkgClassFilterView::checkMatch | ( | ZyppSel | selectable, |
ZyppPkg | pkg | ||
) |
Check if 'pkg' matches the selected package class.
Returns 'true' if there is a match, 'false' otherwise.
Definition at line 237 of file YQPkgClassFilterView.cc.
|
slot |
Filter according to the view's rules and current selection.
Emits those signals: filterStart() filterMatch() for each pkg that matches the filter filterFinished()
Definition at line 143 of file YQPkgClassFilterView.cc.
|
signal |
Emitted when the filtering starts.
Use this to clear package lists etc. prior to adding new entries.
void YQPkgClassFilterView::showPkgClass | ( | YQPkgClass | pkgClass | ) |
Show the specified package class, i.e.
select that filter.
Definition at line 279 of file YQPkgClassFilterView.cc.