summaryrefslogtreecommitdiffstats
path: root/src/kbfxspinxscrollbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfxspinxscrollbar.cpp')
-rw-r--r--src/kbfxspinxscrollbar.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/kbfxspinxscrollbar.cpp b/src/kbfxspinxscrollbar.cpp
index 6fcff50..c2f7d08 100644
--- a/src/kbfxspinxscrollbar.cpp
+++ b/src/kbfxspinxscrollbar.cpp
@@ -21,17 +21,17 @@
#include "kbfxspinxscrollbar.h"
-KbfxSpinxScrollBar::KbfxSpinxScrollBar ( QWidget * parent, const char *name, int type ) :
- QWidget ( parent, name )
+KbfxSpinxScrollBar::KbfxSpinxScrollBar ( TQWidget * tqparent, const char *name, int type ) :
+ TQWidget ( tqparent, name )
{
if (type == 0){
m_normal = ( *KbfxPlasmaPixmapProvider::pixmap ( "scrollnormal" ) );
} else {
m_normal = ( *KbfxPlasmaPixmapProvider::pixmap ( "scrollnormalbot" ) );
}
- QImage _tmp_img = m_normal.convertToImage();
- _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, m_normal.height (),QImage::ScaleFree );
- m_normal = QPixmap ( _tmp_img );
+ TQImage _tmp_img = m_normal.convertToImage();
+ _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, m_normal.height (),TQ_ScaleFree );
+ m_normal = TQPixmap ( _tmp_img );
this->resize ( m_normal.width (), m_normal.height () );
@@ -41,10 +41,10 @@ KbfxSpinxScrollBar::KbfxSpinxScrollBar ( QWidget * parent, const char *name, int
h = this->height () / 2;
_x += ( this->width () - w ) / 2;
_y += ( this->height () - h ) / 2;
- m_triAngle = QPointArray ( 3 );
+ m_triAngle = TQPointArray ( 3 );
m_dir = DOWN;
- m_timer = new QTimer ( this,"ScrollTimer" );
- connect ( m_timer,SIGNAL ( timeout() ),this,SLOT ( timeoutslot() ) );
+ m_timer = new TQTimer ( this,"ScrollTimer" );
+ connect ( m_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( timeoutslot() ) );
m_pressed = false;
}
@@ -53,18 +53,18 @@ KbfxSpinxScrollBar::~KbfxSpinxScrollBar ()
{}
void
-KbfxSpinxScrollBar::paintEvent ( QPaintEvent * pe )
+KbfxSpinxScrollBar::paintEvent ( TQPaintEvent * pe )
{
- QRect r = pe->rect();
- QPainter p;
+ TQRect r = pe->rect();
+ TQPainter p;
p.begin ( this );
- p.drawPixmap ( QRect ( 0, 0, m_normal.width (), m_normal.height () ),
+ p.drawPixmap ( TQRect ( 0, 0, m_normal.width (), m_normal.height () ),
m_normal );
- p.setPen ( QColor ( 255,255,255 ) );
+ p.setPen ( TQColor ( 255,255,255 ) );
if ( m_pressed == false )
- p.setBrush ( QColor ( 255,255,255 ) );
+ p.setBrush ( TQColor ( 255,255,255 ) );
else
- p.setBrush ( QColor ( 0,0,0 ) );
+ p.setBrush ( TQColor ( 0,0,0 ) );
p.drawPolygon ( m_triAngle );
p.end ();
@@ -92,7 +92,7 @@ KbfxSpinxScrollBar::setType ( Direction dir )
void
-KbfxSpinxScrollBar::mousePressEvent ( QMouseEvent * me )
+KbfxSpinxScrollBar::mousePressEvent ( TQMouseEvent * me )
{
me = me;
m_pressed = true;
@@ -101,7 +101,7 @@ KbfxSpinxScrollBar::mousePressEvent ( QMouseEvent * me )
}
void
-KbfxSpinxScrollBar::mouseReleaseEvent ( QMouseEvent * me )
+KbfxSpinxScrollBar::mouseReleaseEvent ( TQMouseEvent * me )
{
me = me;
m_pressed = false;
@@ -111,7 +111,7 @@ KbfxSpinxScrollBar::mouseReleaseEvent ( QMouseEvent * me )
void
-KbfxSpinxScrollBar::enterEvent ( QEvent * e )
+KbfxSpinxScrollBar::enterEvent ( TQEvent * e )
{
e = e;
m_pressed = true;
@@ -120,7 +120,7 @@ KbfxSpinxScrollBar::enterEvent ( QEvent * e )
}
void
-KbfxSpinxScrollBar::leaveEvent ( QEvent *e )
+KbfxSpinxScrollBar::leaveEvent ( TQEvent *e )
{
e =e ;
m_pressed = false;