Revision 9c474b7...
Go back to digest for 8th December 2013Optimization in KDE Base
Martin Gräßlin committed changes in [kde-workspace] /:
[kwin] Use a QIcon in Client for the icons instead of Pixmaps
Client used to have dedicated methods for different icon sizes instead
of combining all pixmaps into one QIcon. This resulted in various parts
of KWin having different access to the icons:
* effects only got one pixmap of size 32x32
* decorations only got the 16x16 and 32x32 pixmaps combined into a QIcon
* tabbox could request all icon sizes, but only as pixmap
Now all sizes are available in one QIcon allowing to easily access the
best fitting icon in a given UI.
File Changes
Modified 18 files
- kwin/bridge.cpp
- kwin/client.cpp
- kwin/client.h
- kwin/effects.cpp
- kwin/effects.h
- kwin/group.cpp
- kwin/group.h
- kwin/scene_opengl.cpp
- kwin/scene_xrender.cpp
- kwin/tabgroup.cpp
- kwin/thumbnailitem.cpp
- kwin/libkwineffects/kwineffects.cpp
- kwin/libkwineffects/kwineffects.h
- kwin/tabbox/declarative.cpp
- kwin/tabbox/tabbox.cpp
- kwin/tabbox/tabbox.h
- kwin/tabbox/tabboxhandler.h
- kwin/effects/presentwindows/presentwindows.cpp
18 files changed in total