QtCurvesCpp/renderarea.h

27 lines
444 B
C
Raw Normal View History

2017-08-28 10:07:22 +02:00
#ifndef RENDERAREA_H
#define RENDERAREA_H
#include <QWidget>
class RenderArea : public QWidget
{
Q_OBJECT
public:
explicit RenderArea(QWidget *parent = nullptr);
QSize minimumSizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const Q_DECL_OVERRIDE;
signals:
protected:
void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;
public slots:
private:
QColor mBackgroundColour;
QColor mShapeColour;
};
#endif // RENDERAREA_H