mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
a405ee13ca
* 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).
22 lines
355 B
C++
22 lines
355 B
C++
#include "CustomPaintWidget.h"
|
|
#include <QPainter>
|
|
|
|
#include "renderdoc_replay.h"
|
|
|
|
CustomPaintWidget::CustomPaintWidget(QWidget *parent) : QWidget(parent)
|
|
{
|
|
m_Output = NULL;
|
|
setAttribute(Qt::WA_PaintOnScreen);
|
|
}
|
|
|
|
CustomPaintWidget::~CustomPaintWidget()
|
|
{
|
|
|
|
}
|
|
|
|
void CustomPaintWidget::paintEvent(QPaintEvent *e)
|
|
{
|
|
if(m_Output) m_Output->Display();
|
|
}
|
|
|