blob: 594b21a2f6d81dcf0d96964de361e06e99daa0c4 [file] [log] [blame]
robertphillips@google.com6dec8fc2012-11-21 17:11:02 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8
9#ifndef SKIMAGEWIDGET_H_
10#define SKIMAGEWIDGET_H_
11
12#include <QWidget>
13
14class SkDebugger;
15
16class SkImageWidget : public QWidget {
17 Q_OBJECT
18
19public:
20 SkImageWidget(SkDebugger* debugger);
21
22 void draw() {
23 this->update();
24 }
25
26 static const int kImageWidgetWidth = 256;
27 static const int kImageWidgetHeight = 256;
28
29signals:
30 void drawComplete();
31
32protected:
33 void paintEvent(QPaintEvent* event);
34
35private:
36 SkDebugger *fDebugger;
37};
38
39#endif /* SKIMAGEWIDGET_H_ */