libyui-qt
2.42.4
|
Enhanced QTreeWidget. More...
#include <QY2ListView.h>
Public Slots | |
virtual void | selectSomething () |
virtual void | clear () |
void | updateItemStates () |
void | updateItemData () |
void | saveColumnWidths () |
void | restoreColumnWidths () |
Signals | |
void | columnClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
void | columnDoubleClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
Public Member Functions | |
QY2ListView (QWidget *parent) | |
virtual | ~QY2ListView () |
virtual QString | toolTip (QTreeWidgetItem *item, int column) |
bool | sortByInsertionSequence () const |
virtual void | setSortByInsertionSequence (bool sortByInsertionSequence) |
int | nextSerial () |
virtual QSize | minimumSizeHint () const |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Protected Slots | |
void | columnWidthChanged (int col, int oldSize, int newSize) |
void | treeExpanded (QTreeWidgetItem *listViewItem) |
void | treeCollapsed (QTreeWidgetItem *listViewItem) |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
Enhanced QTreeWidget.
Definition at line 47 of file QY2ListView.h.
QY2ListView::QY2ListView | ( | QWidget * | parent | ) |
Constructor
Definition at line 36 of file QY2ListView.cc.
|
virtual |
Destructor
Definition at line 71 of file QY2ListView.cc.
|
virtualslot |
Reimplemented from Q3ListView: Adjust header sizes after clearing contents.
Definition at line 101 of file QY2ListView.cc.
|
signal |
Emitted for mouse clicks on an item
|
signal |
Emitted for mouse double clicks on an item
|
protectedslot |
Internal: Handle manual column resize. Save the user's preferred sizes so they don't get overwritten each time the list is cleared and filled with new contents.
Definition at line 288 of file QY2ListView.cc.
|
virtual |
Event filter - inherited from QWidget
Definition at line 316 of file QY2ListView.cc.
|
virtual |
Returns the minimum size required for this widget. Inherited from QWidget.
Definition at line 347 of file QY2ListView.cc.
|
protectedvirtual |
Handle mouse clicks. Reimplemented from QScrollView.
Definition at line 266 of file QY2ListView.cc.
|
protectedvirtual |
Handle mouse clicks. Reimplemented from QScrollView.
Definition at line 211 of file QY2ListView.cc.
|
protectedvirtual |
Handle mouse clicks. Reimplemented from QScrollView.
Definition at line 236 of file QY2ListView.cc.
|
inline |
Returns the next free serial number for items that want to be ordered in insertion sequence.
Definition at line 156 of file QY2ListView.h.
|
slot |
Restore the column widths to what was saved previously with saveColumnWidths().
Definition at line 184 of file QY2ListView.cc.
|
slot |
Save the current column widths.
Definition at line 169 of file QY2ListView.cc.
|
virtualslot |
Select a list entry (if there is any). Usually this will be the first list entry, but don't rely on that - this might change without notice. Emits signal selectionChanged().
Definition at line 81 of file QY2ListView.cc.
|
virtual |
Enforce sorting by item insertion order (true) or let user change sorting by clicking on a column header (false).
Definition at line 354 of file QY2ListView.cc.
|
inline |
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.
Definition at line 144 of file QY2ListView.h.
|
virtual |
Returns a tool tip text for a specific column of a list item. 'column' is -1 if the mouse pointer is in the tree indentation area.
This default implementation tries to call QY2ListViewItem::toolTip( column ) or QY2CheckListItem::toolTip( column ), respectively if 'item' is a subclass of either.
Derived classes may handle this differently.
Definition at line 143 of file QY2ListView.cc.
|
protectedslot |
Internal notification that a tree item has been collapsed
Definition at line 551 of file QY2ListView.cc.
|
protectedslot |
Internal notification that a tree item has been expanded
Definition at line 544 of file QY2ListView.cc.
|
slot |
Update the status display of all list entries: Call QY2ListViewItem::updateData() for each item. This is an expensive operation.
Definition at line 126 of file QY2ListView.cc.
|
slot |
Update the status display of all list entries: Call QY2ListViewItem::updateStatus() for each item. This is an expensive operation.
Definition at line 109 of file QY2ListView.cc.