diff options
Diffstat (limited to 'src/qlcdstring.cpp')
| -rw-r--r-- | src/qlcdstring.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/qlcdstring.cpp b/src/qlcdstring.cpp index 114c9dd..8426c76 100644 --- a/src/qlcdstring.cpp +++ b/src/qlcdstring.cpp @@ -18,91 +18,91 @@ #include "qlcdstring.h" -#include <qpalette.h> +#include <ntqpalette.h> -QLCDString::QLCDString( QWidget *parent, const char *name ): QWidget( parent, name ) +TQLCDString::TQLCDString( TQWidget *parent, const char *name ): TQWidget( parent, name ) { digitStr= ""; - options= QLcd::alignCenter; + options= TQLcd::alignCenter; - QColorGroup g= colorGroup(); + TQColorGroup g= colorGroup(); forColor= g.foreground(); shaColor= g.shadow(); } -QLCDString::~QLCDString(){ +TQLCDString::~TQLCDString(){ } -void QLCDString::display( const QString &str ) +void TQLCDString::display( const TQString &str ) { digitStr= str; update(); } -void QLCDString::setAlign(Align newAlign) +void TQLCDString::setAlign(Align newAlign) { - if( (options & QLcd::alignMask)!=newAlign ) { - options= (options & ~QLcd::alignMask ) | newAlign; + if( (options & TQLcd::alignMask)!=newAlign ) { + options= (options & ~TQLcd::alignMask ) | newAlign; update(); } } -const QColor& QLCDString::foreColor() +const TQColor& TQLCDString::foreColor() { return forColor; } -const QColor& QLCDString::shadowColor() +const TQColor& TQLCDString::shadowColor() { return shaColor; } -void QLCDString::setForeColor(const QColor &fore) +void TQLCDString::setForeColor(const TQColor &fore) { forColor= fore; update(); } -void QLCDString::setShadowColor(const QColor &sha) +void TQLCDString::setShadowColor(const TQColor &sha) { shaColor= sha; update(); } -void QLCDString::resizeEvent ( QResizeEvent *) +void TQLCDString::resizeEvent ( TQResizeEvent *) { update(); } -void QLCDString::setShadow(bool enable) +void TQLCDString::setShadow(bool enable) { - if( (bool)(options & QLcd::drawShadow) != enable ) { - options^= QLcd::drawShadow; + if( (bool)(options & TQLcd::drawShadow) != enable ) { + options^= TQLcd::drawShadow; update(); } } -void QLCDString::setNumberDisplay(bool enable) +void TQLCDString::setNumberDisplay(bool enable) { - if( (bool)(options & QLcd::drawNumber) != enable ) { - options^= QLcd::drawNumber; + if( (bool)(options & TQLcd::drawNumber) != enable ) { + options^= TQLcd::drawNumber; update(); } } -void QLCDString::paintEvent( QPaintEvent *e ) +void TQLCDString::paintEvent( TQPaintEvent *e ) { -QPainter p(this); +TQPainter p(this); - QLcd::draw(&p,0,0,width(),height(),digitStr.latin1(),options,&forColor,&shaColor); + TQLcd::draw(&p,0,0,width(),height(),digitStr.latin1(),options,&forColor,&shaColor); } |
