#include <TariffListViewDelegate.h>
|
| 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 |
|---|
| TariffName |
|
| TariffHasAssignedHotKey |
|
| TariffHasAssignedHotKeyChipCard |
|
| TariffNumber |
|
| TariffNumberFilter |
|
| TariffFromSubstituteTariffGroup |
|
| FontSize |
|
| TariffListViewDelegate::TariffListViewDelegate |
( |
| ) |
|
| TariffListViewDelegate::~TariffListViewDelegate |
( |
| ) |
|
|
virtual |
| bool TariffListViewDelegate::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 TariffListViewDelegate::eventFilter |
( |
QObject * |
object, |
|
|
QEvent * |
event |
|
) |
| |
|
protected |
| void TariffListViewDelegate::OnLongPress |
( |
int |
tariffIndex | ) |
|
|
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
-
| tariffIndex | - tariffIndex of clicked tariff |
| void TariffListViewDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
| void TariffListViewDelegate::PressedReleasedStateChanged |
( |
bool |
isPressed | ) |
|
|
signal |
The documentation for this class was generated from the following files: