summaryrefslogtreecommitdiffstats
path: root/src/kbfxspinxtop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfxspinxtop.cpp')
-rw-r--r--src/kbfxspinxtop.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kbfxspinxtop.cpp b/src/kbfxspinxtop.cpp
index 617e884..5a4fdf3 100644
--- a/src/kbfxspinxtop.cpp
+++ b/src/kbfxspinxtop.cpp
@@ -21,7 +21,7 @@
#include "kbfxspinxtop.h"
-KbfxSpinxTop::KbfxSpinxTop ( QWidget * parent,const char * name ) :QWidget ( parent,name,Qt::WNoAutoErase | WStaticContents | Qt::WPaintClever | Qt::WNoAutoErase )
+KbfxSpinxTop::KbfxSpinxTop ( TQWidget * tqparent,const char * name ) :TQWidget ( tqparent,name,TQt::WNoAutoErase | WStaticContents | TQt::WPaintClever | TQt::WNoAutoErase )
{
m_background = ( *KbfxPlasmaPixmapProvider::pixmap ( "topbg" ) );
@@ -39,7 +39,7 @@ KbfxSpinxTop::~KbfxSpinxTop()
{}
void
-KbfxSpinxTop::mousePressEvent ( QMouseEvent * e )
+KbfxSpinxTop::mousePressEvent ( TQMouseEvent * e )
{
e = e;
emit sizeChange ( 10 );
@@ -51,23 +51,23 @@ KbfxSpinxTop::createDudeBox()
m_dudeBox = ( *KbfxPlasmaPixmapProvider::pixmap ( "dudebox" ) );
// int padding = ((m_dudeBox.height()-m_faceIcon.height()))/2;
- QPainter p;
+ TQPainter p;
p.begin ( &m_dudeBox );
-// p.drawPixmap(QRect(padding,padding,m_faceIcon.width(),m_faceIcon.height()),m_faceIcon);
- p.drawPixmap ( QRect ( ConfigInit().m_faceIconX,ConfigInit().m_faceIconY,ConfigInit().m_faceIconW,ConfigInit().m_faceIconH ),m_faceIcon );
+// p.drawPixmap(TQRect(padding,padding,m_faceIcon.width(),m_faceIcon.height()),m_faceIcon);
+ p.drawPixmap ( TQRect ( ConfigInit().m_faceIconX,ConfigInit().m_faceIconY,ConfigInit().m_faceIconW,ConfigInit().m_faceIconH ),m_faceIcon );
p.end();
}
-QString
+TQString
KbfxSpinxTop::getUserName ()
{
KUser *user = new KUser ();
- QString logInName ( user->fullName () );
+ TQString logInName ( user->fullName () );
// Nookie says some might find it discriminating... We don't want that.
if ( logInName == "root" )
- logInName = QString ( "Administrator" );
+ logInName = TQString ( "Administrator" );
delete user;
return logInName.upper ();
}
@@ -77,36 +77,36 @@ KbfxSpinxTop::getUserName ()
void
KbfxSpinxTop::loadFaceIcon()
{
- QImage UserImage ( ConfigInit().m_SpinxDudeImage );
+ TQImage UserImage ( ConfigInit().m_SpinxDudeImage );
UserImage = UserImage.smoothScale ( 48, 48 );
- m_faceIcon = QPixmap ( UserImage );
+ m_faceIcon = TQPixmap ( UserImage );
}
void
-KbfxSpinxTop::paintEvent ( QPaintEvent * pe )
+KbfxSpinxTop::paintEvent ( TQPaintEvent * pe )
{
pe = pe;
- QRect * r = new QRect ( 0,0,ConfigInit().m_topBar_w,ConfigInit().m_topBar_h );
+ TQRect * r = new TQRect ( 0,0,ConfigInit().m_topBar_w,ConfigInit().m_topBar_h );
- m_pixmapbuff = new QPixmap();
+ m_pixmapbuff = new TQPixmap();
m_pixmapbuff->resize ( r->size() );
m_pixmapbuff->fill ( this, r->topLeft() );
- QPainter p;
- p.begin ( m_pixmapbuff,this );
+ TQPainter p;
+ p.tqbegin ( m_pixmapbuff,this );
// Draw commands are here
p.drawPixmap ( *r,m_background );
- p.setPen ( QColor ( ConfigInit().m_userNameColor ) );
+ p.setPen ( TQColor ( ConfigInit().m_userNameColor ) );
- p.drawPixmap ( QRect ( ConfigInit().m_facePos_x,ConfigInit().m_facePos_y,m_dudeBox.width(),m_dudeBox.height() ),m_dudeBox );
+ p.drawPixmap ( TQRect ( ConfigInit().m_facePos_x,ConfigInit().m_facePos_y,m_dudeBox.width(),m_dudeBox.height() ),m_dudeBox );
if ( !ConfigInit().m_faceBoxHideText )
{
- QFont * _font = new QFont(ConfigInit().m_userNameFont);
+ TQFont * _font = new TQFont(ConfigInit().m_userNameFont);
p.setFont ( *_font );
-// p.setPen(QColor(199,187,206));
+// p.setPen(TQColor(199,187,206));
// p.drawText(ConfigInit().m_userNamePos_x+1,ConfigInit().m_userNamePos_y+2,m_userName);
- p.setPen ( QColor ( ConfigInit().m_userNameColor ) );
+ p.setPen ( TQColor ( ConfigInit().m_userNameColor ) );
p.drawText ( ConfigInit().m_userNamePos_x,ConfigInit().m_userNamePos_y,m_userName );
delete _font;
}