Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TripListViewDelegate.h
Go to the documentation of this file.
1 #ifndef TRIPLISTVIEWDELEGATE_H
2 #define TRIPLISTVIEWDELEGATE_H
3 
4 #include <QStyledItemDelegate>
5 
6 class TripListViewDelegate : public QStyledItemDelegate
7 {
8 public:
9  enum DataRole
10  {
11  TripNumber = Qt::UserRole + 100,
17  };
18 
20  virtual ~TripListViewDelegate();
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 // TRIPLISTVIEWDELEGATE_H
Definition: TripListViewDelegate.h:16
TripListViewDelegate()
Definition: TripListViewDelegate.cpp:38
virtual ~TripListViewDelegate()
Definition: TripListViewDelegate.cpp:44
Definition: TripListViewDelegate.h:14
Definition: TripListViewDelegate.h:15
Definition: TripListViewDelegate.h:6
Definition: TripListViewDelegate.h:12
Definition: TripListViewDelegate.h:13
DataRole
Definition: TripListViewDelegate.h:9
Definition: TripListViewDelegate.h:11
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: TripListViewDelegate.cpp:48