~ubuntu-branches/ubuntu/vivid/sni-qt/vivid

« back to all changes in this revision

Viewing changes to src/iconcache.h

  • Committer: Package Import Robot
  • Author(s): Aurélien Gâteau
  • Date: 2011-10-25 15:52:35 UTC
  • Revision ID: package-import@ubuntu.com-20111025155235-iqg8hr22nhat246u
Tags: 0.2.5-0ubuntu3
Backport r88.1.4 from upstream trunk: avoid causing unity-panel-service to
eat all CPU when an application uses an animated icon (LP: #865601)

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    QString m_themePath;
47
47
    mutable QStringList m_cacheKeys;
48
48
 
49
 
    void cacheIcon(const QIcon&) const;
 
49
    void cacheIcon(const QString& key, const QIcon&) const;
50
50
    void trimCache() const;
51
51
};
52
52