diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-03 21:10:30 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-03 21:10:30 -0500 |
commit | 48c5586497dc6a9d6caf84d48c164da49e060e06 (patch) | |
tree | f220923bfc92a9ba0c53079a6cd26352edbb0dfe /kicker/applets/clock/clock.cpp | |
parent | 86cc65ce51ca652ff1e7517bf29fcd375639719f (diff) | |
download | tdebase-48c5586497dc6a9d6caf84d48c164da49e060e06.tar.gz tdebase-48c5586497dc6a9d6caf84d48c164da49e060e06.zip |
Add option to enable the clock shadow in transparent mode
This closes Bug 387
Diffstat (limited to 'kicker/applets/clock/clock.cpp')
-rw-r--r-- | kicker/applets/clock/clock.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kicker/applets/clock/clock.cpp b/kicker/applets/clock/clock.cpp index be8dfed75..90b88437c 100644 --- a/kicker/applets/clock/clock.cpp +++ b/kicker/applets/clock/clock.cpp @@ -276,8 +276,8 @@ void PlainClock::paintEvent(TQPaintEvent *) void PlainClock::drawContents(TQPainter *p) { TQRect tr(0, 0, width(), height()); - - if (!KickerSettings::transparent()) + + if (!KickerSettings::transparent() || !_prefs->transparentUseShadow()) p->drawText(tr, AlignCenter, _timeStr); else _applet->shadowEngine()->drawText(*p, tr, AlignCenter, _timeStr, size()); @@ -851,9 +851,9 @@ void FuzzyClock::drawContents(TQPainter *p) p->setFont(_prefs->fuzzyFont()); p->setPen(_prefs->fuzzyForegroundColor()); - + TQRect tr; - + if (_applet->getOrientation() == Qt::Vertical) { p->rotate(90); @@ -861,12 +861,12 @@ void FuzzyClock::drawContents(TQPainter *p) } else tr = TQRect(4, 2, width() - 8, height() - 4); - - if (!KickerSettings::transparent()) + + if (!KickerSettings::transparent() || !_prefs->transparentUseShadow()) p->drawText(tr, AlignCenter, _timeStr); else _applet->shadowEngine()->drawText(*p, tr, AlignCenter, _timeStr, size()); - + alreadyDrawing = false; } |