|
libyui-qt-pkg
2.44.7
|
Filter view for PackageKit groups. More...
#include <YQPkgPackageKitGroupsFilterView.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. | |
| void | selectSomething () |
| Select a list entry (if there is any). More... | |
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 | |
| YQPkgPackageKitGroupsFilterView (QWidget *parent) | |
| Constructor. | |
| virtual | ~YQPkgPackageKitGroupsFilterView () |
| Destructor. | |
| YQPkgPackageKitGroup * | selection () const |
| Returns the currently selected item or 0 if there is none. | |
| bool | check (ZyppSel selectable, ZyppPkg pkg) |
| Check if 'pkg' matches the selected group. More... | |
| YPkgGroupEnum | selectedGroup () const |
| Returns the (untranslated!) currently selected group enum. | |
Protected Slots | |
| void | slotSelectionChanged (QTreeWidgetItem *newSelection) |
Protected Member Functions | |
| void | fillGroups () |
Protected Attributes | |
| YPkgGroupEnum | _selectedGroup |
|
std::map< YPkgGroupEnum, YQPkgPackageKitGroup * > | _groupsMap |
|
std::map< std::string, YPkgGroupEnum > | _groupsCache |
Filter view for PackageKit groups.
Uses the packages' RPM group tags and maps them to the corresponding PackageKit group.
Definition at line 108 of file YQPkgPackageKitGroupsFilterView.h.
| bool YQPkgPackageKitGroupsFilterView::check | ( | ZyppSel | selectable, |
| ZyppPkg | pkg | ||
| ) |
Check if 'pkg' matches the selected group.
Returns true if there is a match, false otherwise.
Definition at line 345 of file YQPkgPackageKitGroupsFilterView.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 275 of file YQPkgPackageKitGroupsFilterView.cc.

|
signal |
Emitted when the filtering starts.
Use this to clear package lists etc. prior to adding new entries.
|
slot |
Select a list entry (if there is any).
Usually this will be the first list entry, but don't rely on that - this might change without notice. Emits signal currentItemChanged().
Definition at line 256 of file YQPkgPackageKitGroupsFilterView.cc.