summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/painter_imp.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/bindings/painter_imp.h
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/bindings/painter_imp.h')
-rw-r--r--kjsembed/bindings/painter_imp.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kjsembed/bindings/painter_imp.h b/kjsembed/bindings/painter_imp.h
index f831b7fd..0f99a777 100644
--- a/kjsembed/bindings/painter_imp.h
+++ b/kjsembed/bindings/painter_imp.h
@@ -27,7 +27,7 @@
#include <tqpen.h>
#include <tqpainter.h>
-class TQPixmap;
+class TTQPixmap;
namespace KJSEmbed {
namespace Bindings {
@@ -46,22 +46,22 @@ class PainterRef
PainterRef();
~PainterRef();
- TQPainter *painter();
+ TTQPainter *painter();
- TQPaintDevice *device();
- void setDevice(TQPaintDevice *d);
+ TTQPaintDevice *device();
+ void setDevice(TTQPaintDevice *d);
void setCanDelete(bool can ) {m_canDelete = can;}
bool canDelete() const { return m_canDelete;}
private:
- TQPainter *m_painter;
- TQPaintDevice *m_device;
+ TTQPainter *m_painter;
+ TTQPaintDevice *m_device;
bool m_canDelete;
};
/**
- * JSProxyImp binding for painting on a TQPixmap.
+ * JSProxyImp binding for painting on a TTQPixmap.
*
* @author Richard Moore, rich@kde.org
*/
@@ -84,12 +84,12 @@ public:
private:
bool begin();
- bool begin(TQPaintDevice *dev);
+ bool begin(TTQPaintDevice *dev);
bool end();
- TQPixmap pixmap() const;
- void setPen( const TQPen& pn);
- TQPen pen() const;
- TQRect textBox(const TQString &text);
+ TTQPixmap pixmap() const;
+ void setPen( const TTQPen& pn);
+ TTQPen pen() const;
+ TTQRect textBox(const TTQString &text);
void moveTo( int x, int y );
void lineTo( int x, int y );
void drawPoint( int x, int y );
@@ -97,22 +97,22 @@ private:
void drawRect( int x, int y, int w, int h );
void drawRoundRect( int x, int y, int w, int h, int, int);
void drawEllipse( int x, int y, int w, int h );
- void drawText( int x, int y, const TQString &txt );
+ void drawText( int x, int y, const TTQString &txt );
void drawArc( int x, int y, int w, int h, int a, int alen );
void drawPie( int x, int y, int w, int h, int a, int alen );
- void drawPixmap ( int x, int y, const TQPixmap &pixmap, int sx, int sy, int sw, int sh );
- void drawImage ( int x, int y, const TQImage &image, int sx, int sy, int sw, int sh, int conversionFlags );
- void drawTiledPixmap ( int x, int y, int w, int h, const TQPixmap &pixmap, int sx, int sy);
+ void drawPixmap ( int x, int y, const TTQPixmap &pixmap, int sx, int sy, int sw, int sh );
+ void drawImage ( int x, int y, const TTQImage &image, int sx, int sy, int sw, int sh, int conversionFlags );
+ void drawTiledPixmap ( int x, int y, int w, int h, const TTQPixmap &pixmap, int sx, int sy);
void scale ( double sx, double sy );
void shear ( double sh, double sv );
void rotate ( double a );
void translate ( double dx, double dy );
- void setFont( const TQFont &font);
- TQFont font() const;
- void setBrush( const TQColor &brush );
- TQColor brush() const;
- TQColor backgroundColor() const;
- void setBackgroundColor(const TQColor &color);
+ void setFont( const TTQFont &font);
+ TTQFont font() const;
+ void setBrush( const TTQColor &brush );
+ TTQColor brush() const;
+ TTQColor backgroundColor() const;
+ void setBackgroundColor(const TTQColor &color);
private:
int mid;