blob: 10ece57676f0875a92d55db209a15c01b9d264af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef _SVGTESTWIDGET_H
#define _SVGTESTWIDGET_H
#include <qwidget.h>
#include <qobject.h>
#include "SVGDocument.h"
#include "KSVGCanvas.h"
class SVGTestWidget : public QWidget
{
Q_OBJECT
public:
SVGTestWidget(const KURL &url);
~SVGTestWidget();
private slots:
void slotRenderingFinished();
protected:
virtual void paintEvent(QPaintEvent *event);
virtual void resizeEvent(QResizeEvent *event);
/* virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
virtual void keyPressEvent(QKeyEvent *event);
virtual void keyReleaseEvent(QKeyEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
*/
private:
QPoint m_panningPos;
QPoint m_oldPanningPos;
KSVG::SVGDocument *m_doc;
KSVG::KSVGCanvas *m_canvas;
};
#endif
|