libyui-qt
2.46.13
|
Generic scrollable list of disk usage for any number of partitions. More...
#include <QY2DiskUsageList.h>
Public Member Functions | |
QY2DiskUsageList (QWidget *parent, bool addStdColumns=true) | |
Constructor. More... | |
virtual | ~QY2DiskUsageList () |
Destructor. | |
int | nameCol () const |
int | percentageBarCol () const |
int | usedSizeCol () const |
int | freeSizeCol () const |
int | totalSizeCol () const |
int | deviceNameCol () const |
virtual void | drawRow (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
QTreeWidgetItem * | itemFromIndex (const QModelIndex &index) const |
![]() | |
QY2ListView (QWidget *parent) | |
Constructor. | |
virtual | ~QY2ListView () |
Destructor. | |
virtual QString | toolTip (QTreeWidgetItem *item, int column) |
Returns a tool tip text for a specific column of a list item. More... | |
bool | sortByInsertionSequence () const |
Returns 'true' if the sort order should always be the item insertion order, 'false' if the user can change the sort order by clicking on a column header. | |
virtual void | setSortByInsertionSequence (bool sortByInsertionSequence) |
Enforce sorting by item insertion order (true) or let user change sorting by clicking on a column header (false). | |
int | nextSerial () |
Returns the next free serial number for items that want to be ordered in insertion sequence. | |
virtual QSize | minimumSizeHint () const |
Returns the minimum size required for this widget. More... | |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Event filter - inherited from QWidget. | |
Protected Attributes | |
int | _nameCol |
int | _percentageBarCol |
int | _usedSizeCol |
int | _freeSizeCol |
int | _totalSizeCol |
int | _deviceNameCol |
![]() | |
QTreeWidgetItem * | _mousePressedItem |
int | _mousePressedCol |
Qt::MouseButton | _mousePressedButton |
std::vector< int > | _savedColumnWidth |
bool | _sortByInsertionSequence |
int | _nextSerial |
QY2ListViewToolTip * | _toolTip |
bool | _mouseButton1PressedInHeader |
bool | _finalSizeChangeExpected |
Additional Inherited Members | |
![]() | |
virtual void | selectSomething () |
Select a list entry (if there is any). More... | |
virtual void | clear () |
Reimplemented from Q3ListView: Adjust header sizes after clearing contents. | |
void | updateItemStates () |
Update the status display of all list entries: Call QY2ListViewItem::updateStatus() for each item. More... | |
void | updateItemData () |
Update the status display of all list entries: Call QY2ListViewItem::updateData() for each item. More... | |
void | saveColumnWidths () |
Save the current column widths. | |
void | restoreColumnWidths () |
Restore the column widths to what was saved previously with saveColumnWidths(). | |
![]() | |
void | columnClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
Emitted for mouse clicks on an item. | |
void | columnDoubleClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
Emitted for mouse double clicks on an item. | |
![]() | |
void | columnWidthChanged (int col, int oldSize, int newSize) |
Internal: Handle manual column resize. More... | |
void | treeExpanded (QTreeWidgetItem *listViewItem) |
Internal notification that a tree item has been expanded. | |
void | treeCollapsed (QTreeWidgetItem *listViewItem) |
Internal notification that a tree item has been collapsed. | |
![]() | |
virtual void | mousePressEvent (QMouseEvent *e) |
Handle mouse clicks. More... | |
virtual void | mouseReleaseEvent (QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
Handle mouse clicks. More... | |
Generic scrollable list of disk usage for any number of partitions.
Definition at line 42 of file QY2DiskUsageList.h.
QY2DiskUsageList::QY2DiskUsageList | ( | QWidget * | parent, |
bool | addStdColumns = true |
||
) |
Constructor.
Adds a standard set of list columns if 'addStdColumns' is 'true'. Otherwise the caller is responsible for adding any columns.
Definition at line 160 of file QY2DiskUsageList.cc.