summaryrefslogtreecommitdiffstats
path: root/kscd/bwlednum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kscd/bwlednum.cpp')
-rw-r--r--kscd/bwlednum.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kscd/bwlednum.cpp b/kscd/bwlednum.cpp
index a8f828cc..4bfb16b6 100644
--- a/kscd/bwlednum.cpp
+++ b/kscd/bwlednum.cpp
@@ -9,8 +9,8 @@
#include "bwlednum.h"
-#include "qbitarray.h"
-#include "qpainter.h"
+#include "tqbitarray.h"
+#include "tqpainter.h"
#include <stdio.h>
#include "bwlednum.moc"
@@ -36,11 +36,11 @@ static char segs[14][8] =
{25, 0, 0, 0, 0, 0, 0, 0} }; // blank
-BW_LED_Number::BW_LED_Number( QWidget *parent, const char *name )
- : QFrame( parent, name ){
+BW_LED_Number::BW_LED_Number( TQWidget *parent, const char *name )
+ : TQFrame( parent, name ){
- offcolor = QColor(100,0,0);
+ offcolor = TQColor(100,0,0);
showOffColon(FALSE);
smallLED = false;
current_symbol = ' ';
@@ -64,11 +64,11 @@ BW_LED_Number::~BW_LED_Number(){
}
-void BW_LED_Number::resizeEvent( QResizeEvent * ){
+void BW_LED_Number::resizeEvent( TQResizeEvent * ){
}
-void BW_LED_Number::mouseReleaseEvent( QMouseEvent * /* e */ )
+void BW_LED_Number::mouseReleaseEvent( TQMouseEvent * /* e */ )
{
emit(clicked());
}
@@ -79,20 +79,20 @@ void BW_LED_Number::showOffColon(bool off){
}
-void BW_LED_Number::setLEDColor( const QColor& fgColor, const QColor& bgColor ){
+void BW_LED_Number::setLEDColor( const TQColor& fgColor, const TQColor& bgColor ){
fgcolor = fgColor;
bgcolor = bgColor;
- QColorGroup old_cg = this->colorGroup();
+ TQColorGroup old_cg = this->colorGroup();
- QColorGroup new_cg( fgColor, bgColor,
+ TQColorGroup new_cg( fgColor, bgColor,
fgColor, fgColor, fgColor,
fgColor, fgColor );
- this->setPalette(QPalette(new_cg, new_cg, new_cg));
+ this->setPalette(TQPalette(new_cg, new_cg, new_cg));
}
@@ -129,7 +129,7 @@ static char *getSegments( char s)
return segs[j];
}
-void BW_LED_Number::drawContents( QPainter *p ){
+void BW_LED_Number::drawContents( TQPainter *p ){
drawSymbol( p, current_symbol,TRUE );
@@ -147,7 +147,7 @@ void BW_LED_Number::display(int i ){
void BW_LED_Number::display(char s){
- QPainter p;
+ TQPainter p;
p.begin( this );
@@ -168,11 +168,11 @@ void BW_LED_Number::setSmallLED(bool a_boolean){
}
-void BW_LED_Number::drawSymbol( QPainter *p,char ,bool repaint ){
+void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
// printf("drawSymbol repaint = %d\n",repaint);
- QPoint pos;
+ TQPoint pos;
int xSegment_Length, ySegment_Length, Segment_Length, xAdvance;
int Xoffset, Yoffset, space;
@@ -191,7 +191,7 @@ void BW_LED_Number::drawSymbol( QPainter *p,char ,bool repaint ){
Xoffset = ( width() - xAdvance + Segment_Length/4 )/2;
Yoffset = ( height() - Segment_Length*2 )/2;
- pos = QPoint( Xoffset , Yoffset );
+ pos = TQPoint( Xoffset , Yoffset );
if(repaint){
@@ -266,19 +266,19 @@ bool BW_LED_Number::seg_contained_in( char c, char* seg){
return result;
}
-void BW_LED_Number::setLEDoffColor(QColor color){
+void BW_LED_Number::setLEDoffColor(TQColor color){
offcolor = color;
}
-void BW_LED_Number::drawSegment( const QPoint &pos, char seg_number, QPainter &p,
+void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter &p,
int Segment_Length, bool erase){
- QPoint pt = pos;
- QColorGroup g = colorGroup();
- QColor lightColor,darkColor;
+ TQPoint pt = pos;
+ TQColorGroup g = colorGroup();
+ TQColor lightColor,darkColor;
if ( erase ){
lightColor = offcolor;
@@ -293,8 +293,8 @@ void BW_LED_Number::drawSegment( const QPoint &pos, char seg_number, QPainter &p
int Width = (int) Segment_Length/4;
- QBrush brush(g.light());
- QPointArray pts;
+ TQBrush brush(g.light());
+ TQPointArray pts;
pt.ry() += (QCOORD)Width/2;