Files
renderdoc/qrenderdoc/Widgets/CustomPaintWidget.h
T
baldurk a405ee13ca Loads of changes, fix thread & invoke helpers, skeleton of Core working
* GUIInvoke helper changed to use QMetaObject::invokeMethod which works
  on threads better.
* LambdaThread helper class now has a thread member, it doesn't derive
  from thread (this seems to be recommended practice).
2015-07-10 16:38:34 +02:00

29 lines
504 B
C++

#ifndef CUSTOMPAINTWIDGET_H
#define CUSTOMPAINTWIDGET_H
#include <QWidget>
struct IReplayOutput;
class CustomPaintWidget : public QWidget
{
Q_OBJECT
public:
explicit CustomPaintWidget(QWidget *parent = 0);
~CustomPaintWidget();
void SetOutput(IReplayOutput *out) { m_Output = out; }
signals:
public slots:
protected:
void paintEvent(QPaintEvent *e);
QPaintEngine *paintEngine() const { return NULL; }
IReplayOutput *m_Output;
};
#endif // CUSTOMPAINTWIDGET_H