#include <QY2ListView.h>
Inheritance diagram for QY2ListView:
Public Slots | |
virtual void | selectSomething () |
virtual void | clear () |
void | updateToplevelItemStates () |
void | updateToplevelItemData () |
void | saveColumnWidths () |
void | restoreColumnWidths () |
Signals | |
void | columnClicked (int button, QListViewItem *item, int col, const QPoint &pos) |
void | columnDoubleClicked (int button, QListViewItem *item, int col, const QPoint &pos) |
Public Member Functions | |
QY2ListView (QWidget *parent) | |
virtual | ~QY2ListView () |
virtual QString | toolTip (QListViewItem *item, int column) |
int | nextSerial () |
virtual QSize | minimumSizeHint () const |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Protected Slots | |
void | columnWidthChanged (int col, int oldSize, int newSize) |
Protected Member Functions | |
virtual void | contentsMousePressEvent (QMouseEvent *e) |
virtual void | contentsMouseReleaseEvent (QMouseEvent *) |
virtual void | contentsMouseDoubleClickEvent (QMouseEvent *) |
Protected Attributes | |
QListViewItem * | _mousePressedItem |
int | _mousePressedCol |
int | _mousePressedButton |
std::vector< int > | _savedColumnWidth |
int | _nextSerial |
QY2ListViewToolTip * | _toolTip |
bool | _mouseButton1PressedInHeader |
bool | _finalSizeChangeExpected |
|
Constructor |
|
Destructor |
|
Reimplemented from QListView: Adjust header sizes after clearing contents. Reimplemented in YQPkgObjList. |
|
Emitted for mouse clicks on an item |
|
Emitted for mouse double clicks on an item |
|
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. |
|
Handle mouse clicks. Reimplemented from QScrollView. |
|
Handle mouse clicks. Reimplemented from QScrollView. |
|
Handle mouse clicks. Reimplemented from QScrollView. |
|
Event filter - inherited from QWidget |
|
Returns the minimum size required for this widget. Inherited from QWidget. Reimplemented in YQPkgVersionsView. |
|
Returns the next free serial number for items that want to be ordered in insertion sequence. |
|
Restore the column widths to what was saved previously with saveColumnWidths(). |
|
Save the current column widths. |
|
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(). |
|
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. |
|
Update the status display of all toplevel list entries: Call QY2ListViewItem::updateData() for each item. This is an expensive operation. |
|
Update the status display of all toplevel list entries: Call QY2ListViewItem::updateStatus() for each item. This is an expensive operation. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|