|
Toolbox Qt
|
Allow to manage events between tbq::TableWidgetItemLink and a QTableWidget.
More...
Static Public Member Functions | |
| static void | manageEvents (QTableWidget *table) |
Use to set listeners for events related to a TableWidgetItemLink. | |
| static void | handleOpening (QTableWidget *table, int row, int column) |
Allow to manage "open" event of a QTableWidget. | |
| static void | handleHovering (QTableWidget *table, QTableWidgetItem *item) |
Allow to manage "hover" event of a QTableWidget. | |
Allow to manage events between tbq::TableWidgetItemLink and a QTableWidget.
When a QTableWidgetItem is used to store a link, it cannot be clicked and being fully displayed.
This class aims to fix this issue by properly:
Caller only have to use:
|
static |
Use to set listeners for events related to a TableWidgetItemLink.
This method only set connect events to their respective method. If caller need to to re-implement connection event, methods handleOpening() and handleHovering() can be called.
| [out] | table | Table to use to manage events. |
|
static |
Allow to manage "open" event of a QTableWidget.
If item at cell (row, col) is not a TableWidgetItemLink, nothing will be performed, otherwise link will be opened.
| [in,out] | table | Table associated to the event |
| [in] | row | Row of the related cell |
| [in] | column | Colum of the related cell |
|
static |
Allow to manage "hover" event of a QTableWidget.
If item is a TableWidgetItemLink, cursor will be set to Qt::PointingHandCursor, otherwise it be reset to default.
| [in,out] | table | Table associated to the event. Must be not NULL. |
| [in] | item | Item related to the event. Can be NULL. |