Changeset View
Changeset View
Standalone View
Standalone View
examples/DrawIntoPainter/framewidget.h
Show All 28 Lines | |||||
29 | 29 | | |||
30 | class FrameWidget : public QWidget | 30 | class FrameWidget : public QWidget | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | explicit FrameWidget( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() ); | 35 | explicit FrameWidget( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() ); | ||
36 | 36 | | |||
37 | void paintEvent( QPaintEvent* ) Q_DECL_OVERRIDE; | 37 | void paintEvent( QPaintEvent* ) override; | ||
38 | 38 | | |||
39 | void setChart( KChart::Chart* chart ); | 39 | void setChart( KChart::Chart* chart ); | ||
40 | 40 | | |||
41 | private: | 41 | private: | ||
42 | KChart::Chart* mChart; | 42 | KChart::Chart* mChart; | ||
43 | }; | 43 | }; | ||
44 | 44 | | |||
45 | 45 | | |||
46 | #endif /* FRAMEWIDGET_H */ | 46 | #endif /* FRAMEWIDGET_H */ | ||
47 | 47 | |