Changeset View
Changeset View
Standalone View
Standalone View
src/KGantt/kganttgraphicsitem.h
Show All 25 Lines | |||||
26 | #include <QGraphicsItem> | 26 | #include <QGraphicsItem> | ||
27 | #include <QDateTime> | 27 | #include <QDateTime> | ||
28 | #include <QPersistentModelIndex> | 28 | #include <QPersistentModelIndex> | ||
29 | 29 | | |||
30 | QT_BEGIN_NAMESPACE | 30 | QT_BEGIN_NAMESPACE | ||
31 | class QGraphicsLineItem; | 31 | class QGraphicsLineItem; | ||
32 | QT_END_NAMESPACE | 32 | QT_END_NAMESPACE | ||
33 | 33 | | |||
34 | namespace KGANTT_EXPORT KGantt { | 34 | namespace KGantt { | ||
35 | class GraphicsScene; | 35 | class GraphicsScene; | ||
36 | class ConstraintGraphicsItem; | 36 | class ConstraintGraphicsItem; | ||
37 | 37 | | |||
38 | /* Can we fit every kind of item into one gfxitem class? */ | 38 | /* Can we fit every kind of item into one gfxitem class? */ | ||
39 | class GraphicsItem : public QGraphicsItem { | 39 | class KGANTT_EXPORT GraphicsItem : public QGraphicsItem { | ||
40 | public: | 40 | public: | ||
41 | enum { Type = UserType + 42 }; | 41 | enum { Type = UserType + 42 }; | ||
42 | 42 | | |||
43 | explicit GraphicsItem( QGraphicsItem* parent = nullptr, GraphicsScene* scene = nullptr ); | 43 | explicit GraphicsItem( QGraphicsItem* parent = nullptr, GraphicsScene* scene = nullptr ); | ||
44 | explicit GraphicsItem( const QModelIndex& idx, QGraphicsItem* parent = nullptr, GraphicsScene* scene = nullptr ); | 44 | explicit GraphicsItem( const QModelIndex& idx, QGraphicsItem* parent = nullptr, GraphicsScene* scene = nullptr ); | ||
45 | virtual ~GraphicsItem(); | 45 | virtual ~GraphicsItem(); | ||
46 | 46 | | |||
47 | /*reimp*/int type() const override; | 47 | /*reimp*/int type() const override; | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |