libyui-qt-pkg
2.42.5
|
Display package dependency conflicts in a tree list and let the user choose how to resolve each conflict. More...
#include <YQPkgConflictList.h>
Public Slots | |
void | applyResolutions () |
void | askSaveToFile () const |
void | clear () |
void | relayout () |
Signals | |
void | updatePackages () |
Public Member Functions | |
YQPkgConflictList (QWidget *parent) | |
virtual | ~YQPkgConflictList () |
void | fill (zypp::ResolverProblemList problemList) |
bool | isEmpty () const |
int | count () const |
void | saveToFile (const QString filename, bool interactive) const |
Protected Attributes | |
QList< YQPkgConflict * > | _conflicts |
QVBoxLayout * | _layout |
Display package dependency conflicts in a tree list and let the user choose how to resolve each conflict.
Definition at line 66 of file YQPkgConflictList.h.
YQPkgConflictList::YQPkgConflictList | ( | QWidget * | parent | ) |
Constructor.
Definition at line 83 of file YQPkgConflictList.cc.
|
virtual |
Destructor.
Definition at line 95 of file YQPkgConflictList.cc.
|
slot |
Apply the choices the user made.
Definition at line 157 of file YQPkgConflictList.cc.
|
slot |
Ask for a file name and save the current conflict list to file.
Definition at line 176 of file YQPkgConflictList.cc.
|
inline |
Returns the number of conflicts in the list.
Definition at line 94 of file YQPkgConflictList.h.
void YQPkgConflictList::fill | ( | zypp::ResolverProblemList | problemList | ) |
Fill the list with the specified problems.
Definition at line 117 of file YQPkgConflictList.cc.
|
inline |
Check if the conflict list is empty.
Definition at line 89 of file YQPkgConflictList.h.
void YQPkgConflictList::saveToFile | ( | const QString | filename, |
bool | interactive | ||
) | const |
Save the conflict list in its current state to a file. Retains the current 'expanded' state, i.e. writes only those entries that are currently open (not collapsed) in the tree.
Posts error popups if 'interactive' is 'true' (only log entries otherwise).
Definition at line 187 of file YQPkgConflictList.cc.
|
signal |
Update package states - they may have changed.