summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrGradient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrGradient.cpp')
-rw-r--r--kpresenter/KPrGradient.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kpresenter/KPrGradient.cpp b/kpresenter/KPrGradient.cpp
index 89728ece7..f00c9d423 100644
--- a/kpresenter/KPrGradient.cpp
+++ b/kpresenter/KPrGradient.cpp
@@ -19,12 +19,12 @@
*/
#include "KPrGradient.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kpixmapeffect.h>
#include <kdebug.h>
#include <KoTextZoomHandler.h>
-KPrGradient::KPrGradient( const QColor &_color1, const QColor &_color2, BCType _bcType,
+KPrGradient::KPrGradient( const TQColor &_color1, const TQColor &_color2, BCType _bcType,
bool _unbalanced, int _xfactor, int _yfactor )
: color1( _color1 ), color2( _color2 ), bcType( _bcType ),
m_pixmap(), refCount( 0 ),
@@ -34,7 +34,7 @@ KPrGradient::KPrGradient( const QColor &_color1, const QColor &_color2, BCType _
//m_pixmap.resize( _size );
}
-void KPrGradient::setParameters(const QColor &c1, const QColor &c2, BCType _type,
+void KPrGradient::setParameters(const TQColor &c1, const TQColor &c2, BCType _type,
bool _unbalanced, int xf, int yf) {
color1=c1;
color2=c2;
@@ -57,12 +57,12 @@ bool KPrGradient::removeRef()
void KPrGradient::paint()
{
- QPainter painter;
+ TQPainter painter;
switch ( bcType ) {
case BCT_PLAIN:
painter.begin( &m_pixmap );
- painter.setPen( Qt::NoPen );
+ painter.setPen( TQt::NoPen );
painter.setBrush( color1 );
painter.drawRect( m_pixmap.rect() );
@@ -128,7 +128,7 @@ void KPrGradient::paint()
m_bDirty = false;
}
-const QPixmap& KPrGradient::pixmap() const
+const TQPixmap& KPrGradient::pixmap() const
{
if ( m_bDirty )
const_cast<KPrGradient *>(this)->paint();