1 #ifndef TRIPVISUALISATIONBUSSTOPLISTVIEWDELEGATE_H
2 #define TRIPVISUALISATIONBUSSTOPLISTVIEWDELEGATE_H
4 #include <QStyledItemDelegate>
26 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const;
34 bool editorEvent( QEvent *event, QAbstractItemModel *model,
const QStyleOptionViewItem &option,
const QModelIndex &index );
48 void OnLongPressTimeout();
52 QScopedPointer<DataClass> d;
55 #endif // TRIPVISUALISATIONBUSSTOPLISTVIEWDELEGATE_H
Definition: TripVisualisationBusStopListViewDelegate.h:17
Definition: TripVisualisationBusStopListViewDelegate.h:13
virtual ~TripVisualisationBusStopListViewDelegate()
Definition: TripVisualisationBusStopListViewDelegate.cpp:120
Definition: TripVisualisationBusStopListViewDelegate.h:16
Definition: TripVisualisationBusStopListViewDelegate.h:15
TripVisualisationBusStopListViewDelegate()
Definition: TripVisualisationBusStopListViewDelegate.cpp:114
bool eventFilter(QObject *object, QEvent *event)
Definition: TripVisualisationBusStopListViewDelegate.cpp:323
Definition: TripVisualisationBusStopListViewDelegate.h:6
DataRole
Definition: TripVisualisationBusStopListViewDelegate.h:10
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
editorEvent - handles events on listView items
Definition: TripVisualisationBusStopListViewDelegate.cpp:262
void OnLongPress(unsigned long tripBusStopIndex)
OnLongPress - this signal is emitted when mouse is pressed on some item for long enough time (see LON...
Definition: TripVisualisationBusStopListViewDelegate.h:14
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
paint - draws one item to painter
Definition: TripVisualisationBusStopListViewDelegate.cpp:124
Definition: TripVisualisationBusStopListViewDelegate.h:12