libyui-qt-pkg  2.45.15.2
YQPkgConflictList Class Reference

Display package dependency conflicts in a tree list and let the user choose how to resolve each conflict. More...

#include <YQPkgConflictList.h>

Inheritance diagram for YQPkgConflictList:
Collaboration diagram for YQPkgConflictList:

Public Slots

void applyResolutions ()
 Apply the choices the user made.
 
void askSaveToFile () const
 Ask for a file name and save the current conflict list to file.
 
void clear ()
 
void relayout ()
 

Signals

void updatePackages ()
 Update package states - they may have changed.
 

Public Member Functions

 YQPkgConflictList (QWidget *parent)
 Constructor.
 
virtual ~YQPkgConflictList ()
 Destructor.
 
void fill (zypp::ResolverProblemList problemList)
 Fill the list with the specified problems.
 
bool isEmpty () const
 Check if the conflict list is empty.
 
int count () const
 Returns the number of conflicts in the list.
 
void saveToFile (const QString filename, bool interactive) const
 Save the conflict list in its current state to a file. More...
 

Protected Attributes

QList< YQPkgConflict * > _conflicts
 
QVBoxLayout * _layout
 

Detailed Description

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.

Member Function Documentation

◆ saveToFile()

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.

Here is the call graph for this function:

The documentation for this class was generated from the following files: