1
0
Fork 0
flightgear/utils/fgqcanvas/fgcanvaswidget.h
James Turner bd5a266e9f Qt-based remote canvas application.
Work-in-progress, currently performance is sub-optimal (software
rendering via QPainter API).
2016-12-17 14:24:28 +00:00

30 lines
510 B
C++

#ifndef FGCANVASWIDGET_H
#define FGCANVASWIDGET_H
#include <QWidget>
#include "localprop.h"
class FGCanvasGroup;
class FGCanvasWidget : public QWidget
{
Q_OBJECT
public:
explicit FGCanvasWidget(QWidget *parent = 0);
void setRootProperty(LocalProp *root);
FGCanvasGroup* rootElement();
signals:
public slots:
protected:
virtual void paintEvent(QPaintEvent* pe);
private:
LocalProp* _canvasRoot = nullptr;
FGCanvasGroup* _rootElement = nullptr;
};
#endif // FGCANVASWIDGET_H