diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-05 13:28:24 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-05 13:28:24 -0600 |
commit | cd20bd0bb55ec383cf4cdeaad16eb23512e91206 (patch) | |
tree | 6c755a18c8bd51e26eadd07632bf92fbefc5f848 /redhat/kdebase/kdebase-3.5.13-restore_kde3_clock.patch | |
parent | 629156d239e0489a18a167ab770be3ae6087a647 (diff) | |
parent | c99e2aca485d146337b087cdb0876e82fe5030d8 (diff) | |
download | tde-packaging-cd20bd0bb55ec383cf4cdeaad16eb23512e91206.tar.gz tde-packaging-cd20bd0bb55ec383cf4cdeaad16eb23512e91206.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/kdebase/kdebase-3.5.13-restore_kde3_clock.patch')
-rw-r--r-- | redhat/kdebase/kdebase-3.5.13-restore_kde3_clock.patch | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/redhat/kdebase/kdebase-3.5.13-restore_kde3_clock.patch b/redhat/kdebase/kdebase-3.5.13-restore_kde3_clock.patch new file mode 100644 index 000000000..2b697330d --- /dev/null +++ b/redhat/kdebase/kdebase-3.5.13-restore_kde3_clock.patch @@ -0,0 +1,104 @@ +Index: kicker/applets/systemtray/systemtrayapplet.cpp +=================================================================== +--- kicker/applets/systemtray/systemtrayapplet.cpp (revision 1262481) ++++ kicker/applets/systemtray/systemtrayapplet.cpp (working copy) +@@ -34,6 +34,7 @@ + #include <tqstyle.h> + #include <tqgrid.h> + #include <tqpainter.h> ++#include <tqimage.h> + + #include <dcopclient.h> + #include <kapplication.h> +Index: kicker/applets/clock/clock.h +=================================================================== +--- kicker/applets/clock/clock.h (revision 1262481) ++++ kicker/applets/clock/clock.h (working copy) +@@ -41,7 +41,6 @@ + + #include <kickertip.h> + #include "settings.h" +-#include "kshadowengine.h" + + class TQTimer; + class TQBoxLayout; +@@ -283,8 +282,6 @@ + TQDate clockGetDate(); + + virtual void updateKickerTip(KickerTip::Data&); +- +- KTextShadowEngine *shadowEngine(); + + k_dcop: + void reconfigure(); +@@ -344,7 +341,6 @@ + TQStringList _remotezonelist; + KPopupMenu* menu; + ClockAppletToolTip m_tooltip; +- KTextShadowEngine *m_shadowEngine; + }; + + +Index: kicker/applets/clock/clock.cpp +=================================================================== +--- kicker/applets/clock/clock.cpp (revision 1262481) ++++ kicker/applets/clock/clock.cpp (working copy) +@@ -277,10 +277,7 @@ + { + TQRect tr(0, 0, width(), height()); + +- if (!KickerSettings::transparent()) +- p->drawText(tr, AlignCenter, _timeStr); +- else +- _applet->shadowEngine()->drawText(*p, tr, AlignCenter, _timeStr, size()); ++ p->drawText(tr, AlignCenter, _timeStr); + } + + //************************************************************ +@@ -862,10 +859,7 @@ + else + tr = TQRect(4, 2, width() - 8, height() - 4); + +- if (!KickerSettings::transparent()) +- p->drawText(tr, AlignCenter, _timeStr); +- else +- _applet->shadowEngine()->drawText(*p, tr, AlignCenter, _timeStr, size()); ++ p->drawText(tr, AlignCenter, _timeStr); + + alreadyDrawing = false; + } +@@ -899,8 +893,7 @@ + _prefs(new Prefs(sharedConfig())), + zone(new Zone(config())), + menu(0), +- m_tooltip(this), +- m_shadowEngine(0) ++ m_tooltip(this) + { + DCOPObject::setObjId("ClockApplet"); + _prefs->readConfig(); +@@ -938,7 +931,6 @@ + + ClockApplet::~ClockApplet() + { +- delete m_shadowEngine; + //reverse for the moment + KGlobal::locale()->removeCatalogue("clockapplet"); + KGlobal::locale()->removeCatalogue("timezones"); // For time zone translations +@@ -959,15 +951,7 @@ + } + + +-KTextShadowEngine *ClockApplet::shadowEngine() +-{ +- if (!m_shadowEngine) +- m_shadowEngine = new KTextShadowEngine(); + +- return m_shadowEngine; +-} +- +- + int ClockApplet::widthForHeight(int h) const + { + if (orientation() == Qt::Vertical) + |