mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
* 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).
29 lines
504 B
C++
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
|