libyui-qt-pkg  2.45.15
YQPkgDiskUsageList Class Reference

List of disk usage of all attached partitions. More...

#include <YQPkgDiskUsageList.h>

Inheritance diagram for YQPkgDiskUsageList:
Collaboration diagram for YQPkgDiskUsageList:

Public Slots

void updateDiskUsage ()
 Update all statistical data in the list.
 
void postPendingWarnings ()
 Post all pending disk space warnings based on the warning range notifiers.
 

Public Member Functions

 YQPkgDiskUsageList (QWidget *parent, int thresholdPercent=0)
 Constructor. More...
 
virtual ~YQPkgDiskUsageList ()
 Destructor.
 
virtual QSize sizeHint () const
 Suggest reasonable default size. More...
 

Public Attributes

YQPkgWarningRangeNotifier runningOutWarning
 Warning range notifier about running out of disk space warning.
 
YQPkgWarningRangeNotifier overflowWarning
 Warning range notifier about disk space overflow warning.
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *ev)
 Event handler for keyboard input - for debugging and testing. More...
 

Protected Attributes

QMap< QString, YQPkgDiskUsageListItem * > _items
 
bool _debug
 

Detailed Description

List of disk usage of all attached partitions.

Definition at line 149 of file YQPkgDiskUsageList.h.

Constructor & Destructor Documentation

◆ YQPkgDiskUsageList()

YQPkgDiskUsageList::YQPkgDiskUsageList ( QWidget *  parent,
int  thresholdPercent = 0 
)

Constructor.

'thresholdPercent' can be used to include only partitions with at least this many percent used disk space in the list. This is useful for warning dialogs ( only? ).

Definition at line 83 of file YQPkgDiskUsageList.cc.

Member Function Documentation

◆ keyPressEvent()

void YQPkgDiskUsageList::keyPressEvent ( QKeyEvent *  ev)
protectedvirtual

Event handler for keyboard input - for debugging and testing.

Changes the current item's percentage on the fly.

Reimplemented from QListView / QWidget.

Definition at line 196 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

◆ sizeHint()

QSize YQPkgDiskUsageList::sizeHint ( ) const
virtual

Suggest reasonable default size.

Reimplemented from QListView.

Definition at line 178 of file YQPkgDiskUsageList.cc.


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