up
This commit is contained in:
26
renderarea.h
Normal file
26
renderarea.h
Normal file
@ -0,0 +1,26 @@
|
||||
#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
|
Reference in New Issue
Block a user