Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BusStopListViewDelegate.h
Go to the documentation of this file.
1 #ifndef BUSSTOPLISTVIEWDELEGATE_H
2 #define BUSSTOPLISTVIEWDELEGATE_H
3 
4 #include <QStyledItemDelegate>
5 
6 class BusStopListViewDelegate : public QStyledItemDelegate
7 {
8 public:
9  enum DataRole
10  {
11  TariffNumber = Qt::UserRole + 100,
19  };
20 
22  virtual ~BusStopListViewDelegate();
23 
24  void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
25 
26 private:
27  class DataClass;
28  QScopedPointer<DataClass> d;
29 };
30 
31 #endif // BUSSTOPLISTVIEWDELEGATE_H
DataRole
Definition: BusStopListViewDelegate.h:9
Definition: BusStopListViewDelegate.h:13
Definition: BusStopListViewDelegate.h:16
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: BusStopListViewDelegate.cpp:62
Definition: BusStopListViewDelegate.h:17
Definition: BusStopListViewDelegate.h:18
BusStopListViewDelegate()
Definition: BusStopListViewDelegate.cpp:52
Definition: BusStopListViewDelegate.h:14
virtual ~BusStopListViewDelegate()
Definition: BusStopListViewDelegate.cpp:58
Definition: BusStopListViewDelegate.h:12
Definition: BusStopListViewDelegate.h:11
Definition: BusStopListViewDelegate.h:15
Definition: BusStopListViewDelegate.h:6