Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DestinationBusStopListViewDelegate.h
Go to the documentation of this file.
1 #ifndef DESTINATIONBUSSTOPLISTVIEWDELEGATE_H
2 #define DESTINATIONBUSSTOPLISTVIEWDELEGATE_H
3 
4 #include <QStyledItemDelegate>
5 
6 class DestinationBusStopListViewDelegate : public QStyledItemDelegate
7 {
8 public:
9  enum DataRole
10  {
11  BusStopID = Qt::UserRole + 100,
14  BusStopFilterName, //string, podla ktoreho sa zoraduje a filtruje => nazov zastavky bez specialnych znakov (makcene, dlzne, bodky, ciarky, ...)
16  };
17 
20 
21  void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
22 
23 private:
24  class DataClass;
25  QScopedPointer<DataClass> d;
26 };
27 
28 #endif // DESTINATIONBUSSTOPLISTVIEWDELEGATE_H
Definition: DestinationBusStopListViewDelegate.h:6
DataRole
Definition: DestinationBusStopListViewDelegate.h:9
Definition: DestinationBusStopListViewDelegate.h:12
DestinationBusStopListViewDelegate()
Definition: DestinationBusStopListViewDelegate.cpp:41
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: DestinationBusStopListViewDelegate.cpp:50
Definition: DestinationBusStopListViewDelegate.h:14
Definition: DestinationBusStopListViewDelegate.h:13
Definition: DestinationBusStopListViewDelegate.h:15
virtual ~DestinationBusStopListViewDelegate()
Definition: DestinationBusStopListViewDelegate.cpp:46
Definition: DestinationBusStopListViewDelegate.h:11