libyui-qt-pkg
2.45.5
|
Package version selector: Display a list of available versions from all the different installation sources and let the user change the candidate version for installation / update. More...
#include <YQPkgVersionsView.h>
Public Slots | |
void | showDetailsIfVisible (ZyppSel selectable) |
Show details for the specified package. More... | |
void | reload (int newCurrent) |
Show data for the current package. | |
Signals | |
void | candidateChanged (ZyppObj newCandidate) |
Emitted when the user changes the candidate. | |
void | statusChanged () |
Emitted when the status of any package changed. | |
Public Member Functions | |
YQPkgVersionsView (QWidget *parent) | |
Constructor. | |
virtual | ~YQPkgVersionsView () |
Destructor. | |
virtual QSize | minimumSizeHint () const |
Returns the minimum size required for this widget. More... | |
bool | isMixedMultiVersion () const |
Return the cached value for the current selectable. | |
bool | handleMixedMultiVersion (YQPkgMultiVersion *newSelected) |
Negotiate between multiversion and non-multiversion packages if there are both kinds in that selectable. More... | |
ZyppSel | selectable () const |
Static Public Member Functions | |
static bool | isMixedMultiVersion (ZyppSel selectable) |
Return 'true' if 'selectable' has mixed multiversion flags, 'false' if all its pool items are of the same kind (all multiversion or all non-multiversion). | |
Protected Slots | |
void | checkForChangedCandidate () |
Check for changed candidates. | |
Protected Member Functions | |
void | showDetails (ZyppSel selectable) |
Show details for the specified package. | |
bool | mixedMultiVersionPopup (bool multiversion) const |
Ask user if he really wants to install incompatible package versions. More... | |
bool | anyMultiVersionToInstall (bool multiversion) const |
Check if any package version is marked for installation where its 'multiversion' flag is set to 'multiversion'. | |
void | unselectAllMultiVersion () |
Unselect all multiversion package versions. | |
Protected Attributes | |
QWidget * | _content |
QTabWidget * | _parentTab |
ZyppSel | _selectable |
bool | _isMixedMultiVersion |
QButtonGroup * | _buttons |
QList< QWidget * > | _installed |
QVBoxLayout * | _layout |
Package version selector: Display a list of available versions from all the different installation sources and let the user change the candidate version for installation / update.
Definition at line 64 of file YQPkgVersionsView.h.
bool YQPkgVersionsView::handleMixedMultiVersion | ( | YQPkgMultiVersion * | newSelected | ) |
Negotiate between multiversion and non-multiversion packages if there are both kinds in that selectable.
'newSelected' is the item the user chose to install.
This returns 'true' if status setting etc. is already handled inside this function, 'false' otherwise.
Definition at line 341 of file YQPkgVersionsView.cc.
|
virtual |
Returns the minimum size required for this widget.
Inherited from QWidget.
Definition at line 334 of file YQPkgVersionsView.cc.
|
protected |
Ask user if he really wants to install incompatible package versions.
Return 'true' if he hits [Continue], 'false' if [Cancel].
Definition at line 379 of file YQPkgVersionsView.cc.
|
slot |
Show details for the specified package.
Delayed ( optimized ) display if this is embedded into a QTabWidget parent: In this case, wait until this page becomes visible.
Definition at line 101 of file YQPkgVersionsView.cc.