Index: debugger/QT/SkCanvasWidget.cpp |
diff --git a/debugger/QT/SkCanvasWidget.cpp b/debugger/QT/SkCanvasWidget.cpp |
index 73de8c21ca72d5a69272dfaa27f0410ba9ccc373..9d691cd35acba891e921072fb2c7d21f472d129b 100644 |
--- a/debugger/QT/SkCanvasWidget.cpp |
+++ b/debugger/QT/SkCanvasWidget.cpp |
@@ -8,6 +8,7 @@ |
#include "SkCanvasWidget.h" |
+#include <QtGui> |
SkCanvasWidget::SkCanvasWidget(QWidget* parent, |
SkDebugger* debugger) : QWidget(parent) |
@@ -40,17 +41,17 @@ SkCanvasWidget::SkCanvasWidget(QWidget* parent, |
#if SK_SUPPORT_GPU |
setWidgetVisibility(kGPU_WidgetType, true); |
#endif |
- connect(&fRasterWidget, SIGNAL(drawComplete()), |
- this->parentWidget(), SLOT(drawComplete())); |
+ connect(&fRasterWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(drawComplete())); |
+ connect(&fGLWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(drawComplete())); |
} |
SkCanvasWidget::~SkCanvasWidget() {} |
void SkCanvasWidget::drawTo(int index) { |
fDebugger->setIndex(index); |
- fRasterWidget.draw(); |
+ fRasterWidget.updateImage(); |
#if SK_SUPPORT_GPU |
- fGLWidget.draw(); |
+ fGLWidget.updateImage(); |
#endif |
emit commandChanged(fDebugger->index()); |
} |