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:
Marco Martin 2008-09-21 08:02:54 +00:00
parent de163b5e37
commit da12953de9

View File

@ -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");