diff options
Diffstat (limited to 'ksirc/KSTicker')
-rw-r--r-- | ksirc/KSTicker/kspainter.cpp | 12 | ||||
-rw-r--r-- | ksirc/KSTicker/ksticker.cpp | 10 | ||||
-rw-r--r-- | ksirc/KSTicker/speeddialog.dlg | 4 | ||||
-rw-r--r-- | ksirc/KSTicker/speeddialogData.cpp | 4 |
4 files changed, 15 insertions, 15 deletions
diff --git a/ksirc/KSTicker/kspainter.cpp b/ksirc/KSTicker/kspainter.cpp index e9e63bce..2b8f83a8 100644 --- a/ksirc/KSTicker/kspainter.cpp +++ b/ksirc/KSTicker/kspainter.cpp @@ -109,7 +109,7 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, } if(bcolour < maxcolour ){ p->setBackgroundColor(num2colour[bcolour]); - p->setBackgroundMode(Qt::OpaqueMode); + p->setBackgroundMode(TQt::OpaqueMode); } } @@ -118,7 +118,7 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, else if(str[i] == 0x03){ i++; p->setPen(qpDefPen); - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); } else if((str[i] == '~') && ((str[i+1] >= 0x61) || (str[i+1] <= 0x7a))){ TQFont fnt = p->font(); @@ -126,11 +126,11 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, switch(str[i+1]){ case 'c': p->setPen(qpDefPen); - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); break; case 'C': p->setPen(qpDefPen); - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); fnt.setBold(FALSE); fnt.setItalic(FALSE); fnt.setUnderline(FALSE); @@ -139,11 +139,11 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, case 'r': if(ReverseText == TRUE) { ReverseText = FALSE; - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); } else { ReverseText = TRUE; - p->setBackgroundMode(Qt::OpaqueMode); + p->setBackgroundMode(TQt::OpaqueMode); } temppen = p->pen().color(); p->setPen( p->backgroundColor() ); diff --git a/ksirc/KSTicker/ksticker.cpp b/ksirc/KSTicker/ksticker.cpp index f6afc2a1..1183e414 100644 --- a/ksirc/KSTicker/ksticker.cpp +++ b/ksirc/KSTicker/ksticker.cpp @@ -231,7 +231,7 @@ void KSTicker::timerEvent(TQTimerEvent *) } bAtEnd = FALSE; - static Qt::BGMode bgmode = Qt::TransparentMode; + static TQt::BGMode bgmode = TQt::TransparentMode; bitBlt(pic, -tickStep, 0, pic); TQPainter p(pic); @@ -275,12 +275,12 @@ void KSTicker::timerEvent(TQTimerEvent *) int col = buf.toInt(); if((col >= 0) || (col <= KSPainter::maxcolour)){ bg = KSPainter::num2colour[col]; - bgmode = Qt::OpaqueMode; + bgmode = TQt::OpaqueMode; } } } else{ - bgmode = Qt::TransparentMode; + bgmode = TQt::TransparentMode; } } else { @@ -352,7 +352,7 @@ void KSTicker::timerEvent(TQTimerEvent *) p.setPen(fg); p.setBackgroundColor(bg); - p.setBackgroundMode(Qt::OpaqueMode); + p.setBackgroundMode(TQt::OpaqueMode); p.drawText(this->width() - cOffset + onechar, // remove -onechar. this->height() / 4 + p.fontMetrics().height() / 2, currentStr.mid(currentChar, 1), @@ -415,7 +415,7 @@ void KSTicker::mouseDoubleClickEvent( TQMouseEvent * ) void KSTicker::mousePressEvent( TQMouseEvent *e) { - if(e->button() == Qt::RightButton){ + if(e->button() == TQt::RightButton){ popup->popup(this->cursor().pos()); } else{ diff --git a/ksirc/KSTicker/speeddialog.dlg b/ksirc/KSTicker/speeddialog.dlg index 08526647..11f29b4a 100644 --- a/ksirc/KSTicker/speeddialog.dlg +++ b/ksirc/KSTicker/speeddialog.dlg @@ -18,7 +18,7 @@ MaxSize {32767 32767} Grid {10} Slider { - Qt::Orientation {Horizontal} + TQt::Orientation {Horizontal} MinValue {10} MaxValue {200} Initial {30} @@ -36,7 +36,7 @@ Slider { MaximumSize {32767 32767} } Slider { - Qt::Orientation {Horizontal} + TQt::Orientation {Horizontal} MinValue {1} MaxValue {10} Initial {3} diff --git a/ksirc/KSTicker/speeddialogData.cpp b/ksirc/KSTicker/speeddialogData.cpp index b5ea86c9..38d5b524 100644 --- a/ksirc/KSTicker/speeddialogData.cpp +++ b/ksirc/KSTicker/speeddialogData.cpp @@ -26,7 +26,7 @@ speeddialogData::speeddialogData ( TQWidget* parent, const char* name ) sliderTick = new TQSlider( this, "Slider_1" ); grid->addWidget( sliderTick, 0, 1 ); connect( sliderTick, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateTick(int)) ); - sliderTick->setOrientation( Qt::Horizontal ); + sliderTick->setOrientation( TQt::Horizontal ); sliderTick->setRange( 10, 200 ); sliderTick->setSteps( 10, 50 ); sliderTick->setValue( 30 ); @@ -38,7 +38,7 @@ speeddialogData::speeddialogData ( TQWidget* parent, const char* name ) grid->addWidget( sliderStep, 1, 1 ); connect( sliderStep, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateStep(int)) ); - sliderStep->setOrientation( Qt::Horizontal ); + sliderStep->setOrientation( TQt::Horizontal ); sliderStep->setRange( 1, 10 ); sliderStep->setSteps( 1, 2 ); sliderStep->setValue( 3 ); |