don't pre-render the configure button when it's not needed
no more configure instead of close icon on applets that don't have config options svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863126
This commit is contained in:
parent
de163b5e37
commit
da12953de9
@ -295,8 +295,11 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
||||
|
||||
iconRect.translate(0, m_iconSize);
|
||||
m_configureIcons->paint(&buffPainter, iconRect, "rotate");
|
||||
iconRect.translate(0, m_iconSize);
|
||||
m_configureIcons->paint(&buffPainter, iconRect, "configure");
|
||||
|
||||
if (m_applet && m_applet->hasConfigurationInterface()) {
|
||||
iconRect.translate(0, m_iconSize);
|
||||
m_configureIcons->paint(&buffPainter, iconRect, "configure");
|
||||
}
|
||||
iconRect.translate(0, m_iconSize);
|
||||
m_configureIcons->paint(&buffPainter, iconRect, "close");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user