#include <TripVisualisationBusStopListViewDelegate.h>
|
| void | OnLongPress (unsigned long tripBusStopIndex) |
| | OnLongPress - this signal is emitted when mouse is pressed on some item for long enough time (see LONG_PRESS_TIME_MS in .cpp) More...
|
| |
|
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| | editorEvent - handles events on listView items More...
|
| |
| bool | eventFilter (QObject *object, QEvent *event) |
| |
| Enumerator |
|---|
| TariffNumber |
|
| Name |
|
| TripBusStopIndex |
|
| ArrivalTime |
|
| PassengersGettingOut |
|
| Enabled |
|
| TripVisualisationBusStopListViewDelegate::TripVisualisationBusStopListViewDelegate |
( |
| ) |
|
| TripVisualisationBusStopListViewDelegate::~TripVisualisationBusStopListViewDelegate |
( |
| ) |
|
|
virtual |
| bool TripVisualisationBusStopListViewDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
protected |
editorEvent - handles events on listView items
- Note
- Only two events (mouse click, mouse release) are handled (both are required for detecting long mouse click - aka. TapAndHoldGesture).
- Returns
- true if event was handled, false otherwise
| bool TripVisualisationBusStopListViewDelegate::eventFilter |
( |
QObject * |
object, |
|
|
QEvent * |
event |
|
) |
| |
|
protected |
| void TripVisualisationBusStopListViewDelegate::OnLongPress |
( |
unsigned long |
tripBusStopIndex | ) |
|
|
signal |
OnLongPress - this signal is emitted when mouse is pressed on some item for long enough time (see LONG_PRESS_TIME_MS in .cpp)
- Parameters
-
| tripBusStopIndex | - tripBusStopIndex of clicked bus stop |
| void TripVisualisationBusStopListViewDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
paint - draws one item to painter
The documentation for this class was generated from the following files: