diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /ksim/library/led.cpp | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/library/led.cpp')
-rw-r--r-- | ksim/library/led.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ksim/library/led.cpp b/ksim/library/led.cpp index a3d9e1c..6977304 100644 --- a/ksim/library/led.cpp +++ b/ksim/library/led.cpp @@ -77,14 +77,14 @@ void KSim::Led::setOn(bool force) TQRect rect = d->splitter.coordinates(d->type == First ? 1 : 3); if (d->pixmap.isNull() || rect.isEmpty()) { resize(12, 8); - fill(Qt::white); + fill(TQt::white); return; } - if (d->pixmap.mask() && !d->pixmap.mask()->isNull()) { - TQBitmap mask(rect.size()); - bitBlt(&mask, TQPoint(0, 0), d->pixmap.mask(), rect, CopyROP); - setMask(mask); + if (d->pixmap.tqmask() && !d->pixmap.tqmask()->isNull()) { + TQBitmap tqmask(rect.size()); + bitBlt(&tqmask, TQPoint(0, 0), d->pixmap.tqmask(), rect, CopyROP); + setMask(tqmask); } bitBlt(this, TQPoint(0, 0), &d->pixmap, rect, CopyROP); @@ -100,14 +100,14 @@ void KSim::Led::setOff(bool force) TQRect rect = d->splitter.coordinates(d->type == First ? 0 : 2); if (d->pixmap.isNull() || rect.isEmpty()) { resize(12, 8); - fill(Qt::white); + fill(TQt::white); return; } - if (d->pixmap.mask() && !d->pixmap.mask()->isNull()) { - TQBitmap mask(rect.size()); - bitBlt(&mask, TQPoint(0, 0), d->pixmap.mask(), rect, CopyROP); - setMask(mask); + if (d->pixmap.tqmask() && !d->pixmap.tqmask()->isNull()) { + TQBitmap tqmask(rect.size()); + bitBlt(&tqmask, TQPoint(0, 0), d->pixmap.tqmask(), rect, CopyROP); + setMask(tqmask); } bitBlt(this, TQPoint(0, 0), &d->pixmap, rect, CopyROP); @@ -184,24 +184,24 @@ class KSim::LedLabel::Private }; KSim::LedLabel::LedLabel(int max, int type, const TQString &label, - TQWidget *parent, const char *name, WFlags fl) - : KSim::Progress(max, type, Panel, parent, name, fl) + TQWidget *tqparent, const char *name, WFlags fl) + : KSim::Progress(max, type, Panel, tqparent, name, fl) { init(); setText(label); } KSim::LedLabel::LedLabel(int max, int type, - TQWidget *parent, const char *name, WFlags fl) - : KSim::Progress(max, type, Panel, parent, name, fl) + TQWidget *tqparent, const char *name, WFlags fl) + : KSim::Progress(max, type, Panel, tqparent, name, fl) { init(); } KSim::LedLabel::LedLabel(int max, - TQWidget *parent, const char *name, WFlags fl) + TQWidget *tqparent, const char *name, WFlags fl) : KSim::Progress(max, KSim::Types::None, - Panel, parent, name, fl) + Panel, tqparent, name, fl) { init(); } @@ -228,15 +228,15 @@ void KSim::LedLabel::configureObject(bool reapaintWidget) d->sendLed.update(); setConfigValues(); - layoutLeds(); + tqlayoutLeds(); if (reapaintWidget) update(); } -TQSize KSim::LedLabel::sizeHint() const +TQSize KSim::LedLabel::tqsizeHint() const { - TQSize hint(Progress::sizeHint()); + TQSize hint(Progress::tqsizeHint()); if (d->sendLed.height() > hint.height()) hint.setHeight(d->sendLed.height()); @@ -313,10 +313,10 @@ void KSim::LedLabel::paintEvent(TQPaintEvent *ev) void KSim::LedLabel::resizeEvent(TQResizeEvent *ev) { KSim::Progress::resizeEvent(ev); - layoutLeds(); + tqlayoutLeds(); } -void KSim::LedLabel::layoutLeds() +void KSim::LedLabel::tqlayoutLeds() { int ledHeight = height() / 2; |