summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_autobrush_resource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/core/kis_autobrush_resource.cc')
-rw-r--r--krita/core/kis_autobrush_resource.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/krita/core/kis_autobrush_resource.cc b/krita/core/kis_autobrush_resource.cc
index 6e45c64a6..9a09fe788 100644
--- a/krita/core/kis_autobrush_resource.cc
+++ b/krita/core/kis_autobrush_resource.cc
@@ -19,20 +19,20 @@
#include "kis_autobrush_resource.h"
#include <kdebug.h>
-void KisAutobrushShape::createBrush( QImage* img)
+void KisAutobrushShape::createBrush( TQImage* img)
{
img->create(m_w, m_h, 32);
for(int j = 0; j < m_h; j++)
{
for(int i = 0; i < m_w; i++)
{
- Q_INT8 v = valueAt(i,j);
- img->setPixel( i, j, qRgb(v,v,v));
+ TQ_INT8 v = valueAt(i,j);
+ img->setPixel( i, j, tqRgb(v,v,v));
}
}
}
-KisAutobrushCircleShape::KisAutobrushCircleShape(Q_INT32 w, Q_INT32 h, double fh, double fv)
+KisAutobrushCircleShape::KisAutobrushCircleShape(TQ_INT32 w, TQ_INT32 h, double fh, double fv)
: KisAutobrushShape( w, h, w / 2.0 - fh, h / 2.0 - fv),
m_xcentre ( w / 2.0 ),
m_ycentre ( h / 2.0 ),
@@ -42,7 +42,7 @@ KisAutobrushCircleShape::KisAutobrushCircleShape(Q_INT32 w, Q_INT32 h, double fh
m_yfadecoef ( (m_fv == 0) ? 1 : ( 1.0 / m_fv))
{
}
-Q_INT8 KisAutobrushCircleShape::valueAt(Q_INT32 x, Q_INT32 y)
+TQ_INT8 KisAutobrushCircleShape::valueAt(TQ_INT32 x, TQ_INT32 y)
{
double xr = (x - m_xcentre) + 0.5;
double yr = (y - m_ycentre) + 0.5;
@@ -80,17 +80,17 @@ Q_INT8 KisAutobrushCircleShape::valueAt(Q_INT32 x, Q_INT32 y)
}
}
-KisAutobrushRectShape::KisAutobrushRectShape(Q_INT32 w, Q_INT32 h, double fh, double fv)
+KisAutobrushRectShape::KisAutobrushRectShape(TQ_INT32 w, TQ_INT32 h, double fh, double fv)
: KisAutobrushShape( w, h, w / 2.0 - fh, h / 2.0 - fv),
m_xcentre ( w / 2.0 ),
m_ycentre ( h / 2.0 ),
m_c( fv/fh)
{
}
-Q_INT8 KisAutobrushRectShape::valueAt(Q_INT32 x, Q_INT32 y)
+TQ_INT8 KisAutobrushRectShape::valueAt(TQ_INT32 x, TQ_INT32 y)
{
- double xr = QABS(x - m_xcentre);
- double yr = QABS(y - m_ycentre);
+ double xr = TQABS(x - m_xcentre);
+ double yr = TQABS(y - m_ycentre);
if( xr > m_fh || yr > m_fv )
{
if( yr <= ((xr - m_fh) * m_c + m_fv ) )