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>
|
QTabWidget * | _parentTab |
|
ZyppSel | _selectable |
|
bool | _isMixedMultiVersion |
|
QButtonGroup * | _buttonGroup |
|
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.
◆ YQPkgVersionsView()
YQPkgVersionsView::YQPkgVersionsView |
( |
QWidget * | parent | ) |
|
◆ ~YQPkgVersionsView()
YQPkgVersionsView::~YQPkgVersionsView |
( |
| ) |
|
|
virtual |
◆ anyMultiVersionToInstall()
bool YQPkgVersionsView::anyMultiVersionToInstall |
( |
bool | multiversion | ) |
const |
|
protected |
Check if any package version is marked for installation where its 'multiversion' flag is set to 'multiversion'.
◆ candidateChanged
void YQPkgVersionsView::candidateChanged |
( |
ZyppObj | newCandidate | ) |
|
|
signal |
Emitted when the user changes the candidate.
◆ checkForChangedCandidate
void YQPkgVersionsView::checkForChangedCandidate |
( |
| ) |
|
|
protectedslot |
Check for changed candidates
◆ handleMixedMultiVersion()
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.
◆ installedIsRetracted()
bool YQPkgVersionsView::installedIsRetracted |
( |
ZyppSel | selectable, |
|
|
ZyppObj | installed ) |
|
static |
Return 'true' if 'installed' is retraced, i.e. if there is an available ZyppObj with the same edition, architeture and vendor that has the 'retracted' flag set.
◆ isMixedMultiVersion() [1/2]
bool YQPkgVersionsView::isMixedMultiVersion |
( |
| ) |
const |
|
inline |
Return the cached value for the current selectable.
◆ isMixedMultiVersion() [2/2]
bool YQPkgVersionsView::isMixedMultiVersion |
( |
ZyppSel | selectable | ) |
|
|
static |
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).
◆ minimumSizeHint()
QSize YQPkgVersionsView::minimumSizeHint |
( |
| ) |
const |
|
virtual |
Returns the minimum size required for this widget. Inherited from QWidget.
◆ mixedMultiVersionPopup()
bool YQPkgVersionsView::mixedMultiVersionPopup |
( |
bool | multiversion | ) |
const |
|
protected |
Ask user if he really wants to install incompatible package versions. Return 'true' if he hits [Continue], 'false' if [Cancel].
◆ reload
void YQPkgVersionsView::reload |
( |
int | newCurrent | ) |
|
|
slot |
Show data for the current package.
◆ selectable()
ZyppSel YQPkgVersionsView::selectable |
( |
| ) |
const |
|
inline |
Return the selectable of this details view.
◆ setRetractedColor()
void YQPkgVersionsView::setRetractedColor |
( |
QWidget * | widget | ) |
|
|
static |
Set the colors of a widget for a retracted zyppObj.
◆ showDetails()
void YQPkgVersionsView::showDetails |
( |
ZyppSel | selectable | ) |
|
|
protected |
Show details for the specified package.
◆ showDetailsIfVisible
void YQPkgVersionsView::showDetailsIfVisible |
( |
ZyppSel | selectable | ) |
|
|
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.
◆ statusChanged
void YQPkgVersionsView::statusChanged |
( |
| ) |
|
|
signal |
Emitted when the status of any package changed.
◆ unselectAllMultiVersion()
void YQPkgVersionsView::unselectAllMultiVersion |
( |
| ) |
|
|
protected |
Unselect all multiversion package versions.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt-pkg/src/YQPkgVersionsView.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt-pkg/src/YQPkgVersionsView.cc