Enhanced QTreeWidget.
More...
#include <QY2ListView.h>
|
void | columnClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
|
void | columnDoubleClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
|
|
QTreeWidgetItem * | _mousePressedItem |
|
int | _mousePressedCol |
|
Qt::MouseButton | _mousePressedButton |
|
std::vector< int > | _savedColumnWidth |
|
bool | _sortByInsertionSequence |
|
int | _nextSerial |
|
QY2ListViewToolTip * | _toolTip |
|
bool | _mouseButton1PressedInHeader |
|
bool | _finalSizeChangeExpected |
|
◆ QY2ListView()
QY2ListView::QY2ListView |
( |
QWidget * |
parent | ) |
|
◆ ~QY2ListView()
QY2ListView::~QY2ListView |
( |
| ) |
|
|
virtual |
◆ clear
void QY2ListView::clear |
( |
| ) |
|
|
virtualslot |
Reimplemented from Q3ListView: Adjust header sizes after clearing contents.
◆ columnClicked
void QY2ListView::columnClicked |
( |
int |
button, |
|
|
QTreeWidgetItem * |
item, |
|
|
int |
col, |
|
|
const QPoint & |
pos |
|
) |
| |
|
signal |
Emitted for mouse clicks on an item
◆ columnDoubleClicked
void QY2ListView::columnDoubleClicked |
( |
int |
button, |
|
|
QTreeWidgetItem * |
item, |
|
|
int |
col, |
|
|
const QPoint & |
pos |
|
) |
| |
|
signal |
Emitted for mouse double clicks on an item
◆ columnWidthChanged
void QY2ListView::columnWidthChanged |
( |
int |
col, |
|
|
int |
oldSize, |
|
|
int |
newSize |
|
) |
| |
|
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.
◆ eventFilter()
bool QY2ListView::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
virtual |
Event filter - inherited from QWidget
◆ minimumSizeHint()
QSize QY2ListView::minimumSizeHint |
( |
| ) |
const |
|
virtual |
Returns the minimum size required for this widget. Inherited from QWidget.
◆ mouseDoubleClickEvent()
void QY2ListView::mouseDoubleClickEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protectedvirtual |
Handle mouse clicks. Reimplemented from QScrollView.
◆ mousePressEvent()
void QY2ListView::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
Handle mouse clicks. Reimplemented from QScrollView.
◆ mouseReleaseEvent()
void QY2ListView::mouseReleaseEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protectedvirtual |
Handle mouse clicks. Reimplemented from QScrollView.
◆ nextSerial()
int QY2ListView::nextSerial |
( |
| ) |
|
|
inline |
Returns the next free serial number for items that want to be ordered in insertion sequence.
◆ restoreColumnWidths
void QY2ListView::restoreColumnWidths |
( |
| ) |
|
|
slot |
◆ saveColumnWidths
void QY2ListView::saveColumnWidths |
( |
| ) |
|
|
slot |
Save the current column widths.
◆ selectSomething
void QY2ListView::selectSomething |
( |
| ) |
|
|
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().
◆ setSortByInsertionSequence()
void QY2ListView::setSortByInsertionSequence |
( |
bool |
sortByInsertionSequence | ) |
|
|
virtual |
Enforce sorting by item insertion order (true) or let user change sorting by clicking on a column header (false).
◆ sortByInsertionSequence()
bool QY2ListView::sortByInsertionSequence |
( |
| ) |
const |
|
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.
◆ toolTip()
QString QY2ListView::toolTip |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
|
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.
◆ treeCollapsed
void QY2ListView::treeCollapsed |
( |
QTreeWidgetItem * |
listViewItem | ) |
|
|
protectedslot |
Internal notification that a tree item has been collapsed
◆ treeExpanded
void QY2ListView::treeExpanded |
( |
QTreeWidgetItem * |
listViewItem | ) |
|
|
protectedslot |
Internal notification that a tree item has been expanded
◆ updateItemData
void QY2ListView::updateItemData |
( |
| ) |
|
|
slot |
◆ updateItemStates
void QY2ListView::updateItemStates |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/QY2ListView.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/QY2ListView.cc