paysages3d/src/render/preview/DrawingWidget.h

30 lines
465 B
C
Raw Normal View History

2013-08-18 15:12:54 +00:00
#ifndef DRAWINGWIDGET_H
#define DRAWINGWIDGET_H
2013-11-12 22:15:35 +00:00
#include "preview_global.h"
2013-08-18 15:12:54 +00:00
#include <QWidget>
class QPaintEvent;
class QPainter;
2013-11-12 22:15:35 +00:00
namespace paysages {
namespace preview {
2014-03-01 00:34:34 +00:00
class PREVIEWSHARED_EXPORT DrawingWidget : public QWidget
2013-08-18 15:12:54 +00:00
{
Q_OBJECT
public:
explicit DrawingWidget(QWidget* parent = 0);
protected:
virtual void doDrawing(QPainter* painter) = 0;
private:
virtual void paintEvent(QPaintEvent* event);
};
2013-11-12 22:15:35 +00:00
}
}
2013-08-18 15:12:54 +00:00
#endif /* DRAWINGWIDGET_H */