Summary: | Refresh icon cache when KIconLoader settings change | ||
---|---|---|---|
Product: | [Unmaintained] kopete | Reporter: | Jason Keirstead <jason> |
Component: | general | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jason Keirstead
2004-01-11 20:31:58 UTC
Why'd you change this to wishlist? it's not a wish, it's a genuine bug. and where's this supposed to go exactly? The icon cache of all KOS objects has to get deleted and/or recreated. The problem is getting a list of all these objects. Doing it inside the KOS is impossible because we would need to make it a QObject (and we won't do THAT!). On Saturday 14 February 2004 19:13, Stefan Gehn wrote:
> The icon cache of all KOS objects has to get deleted and/or recreated. The
> problem is getting a list of all these objects. Doing it inside the KOS is
> impossible because we would need to make it a QObject (and we won't do
> THAT!).
The icon cache is already a static member, so it can easily be invalidated by
another (QObject) class. Question is what class would do, and whether we put
that class in kopeteonlinestatus.cpp or move the cache from the Private
object to the main .h file. Currently it's inaccessible because the
declaration is unreachable, not because it's technically impossible due to
lack of a QObject.
Working on it; I've decided to add a Kopete::OnlineStatusIconCache singleton. CVS commit by lilachaze: Update our icon cache and propogate changes to the UI when the user changes their icon settings. This only fixes the contact list - the icons in the title bar of the chatwindows and tabs don't change (but you can close and reopen those windows so it's less of a problem). CCMAIL: 72410-done@bugs.kde.org M +10 -2 kopete/kopetewindow.cpp 1.180 M +5 -0 kopete/kopetewindow.h 1.64 M +11 -36 kopete/contactlist/kopetecontactlistview.cpp 1.76 M +7 -0 kopete/contactlist/kopetecontactlistview.h 1.21 M +7 -1 kopete/contactlist/kopetegroupviewitem.cpp 1.16 M +1 -1 kopete/contactlist/kopetegroupviewitem.h 1.5 M +1 -1 kopete/contactlist/kopetemetacontactlvi.cpp 1.65 M +65 -38 libkopete/kopeteonlinestatus.cpp 1.31 M +41 -2 libkopete/kopeteonlinestatus.h 1.21 M +4 -0 libkopete/kopeteplugindataobject.cpp 1.15 M +6 -1 libkopete/kopeteplugindataobject.h 1.13 |