Files
renderdoc/qrenderdoc/Widgets/CustomPaintWidget.cpp
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

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();
}