1 --- workspace/plasma/desktop/applets/pager/pager.cpp 2010/03/30 20:26:34 1109233
2 +++ workspace/plasma/desktop/applets/pager/pager.cpp 2010/03/30 20:27:36 1109234
5 painter->drawRect(rect);
7 - if ((rect.width() > 16) && (rect.height() > 16) && m_showWindowIcons) {
8 - painter->drawPixmap(rect.x() + (rect.width() - 16) / 2, rect.y() + (rect.height() - 16) / 2, 16, 16,
9 - KWindowSystem::icon(m_windowRects[i][j].first, 16, 16, true));
10 + int size = qMin(16, qMin(rect.width(), rect.height()));
11 + if (size >= 12 && m_showWindowIcons) {
12 + painter->drawPixmap(rect.x() + (rect.width() - size) / 2, rect.y() + (rect.height() - size) / 2, size, size,
13 + KWindowSystem::icon(m_windowRects[i][j].first, size, size, true));