From 6191e5c9ee159dd375c1d481063664fec3e7a92c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 8 Jun 2010 16:20:15 +0000 Subject: [PATCH] show only a wrench icon as configuration button when in panel (and it's not a popupappllet) BUG:240963 svn path=/trunk/KDE/kdelibs/; revision=1136000 --- applet.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index 37caba128..c125244ce 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1008,7 +1008,13 @@ void Applet::setConfigurationRequired(bool needsConfig, const QString &reason) } PushButton *configWidget = new PushButton(d->messageOverlay); - configWidget->setText(i18n("Configure...")); + if (!qobject_cast(this) && (formFactor() == Plasma::Horizontal || formFactor() == Plasma::Vertical)) { + configWidget->setImage("widgets/configuration-icons", "configure"); + configWidget->setMaximumSize(24,24); + configWidget->setMinimumSize(24,24); + } else { + configWidget->setText(i18n("Configure...")); + } connect(configWidget, SIGNAL(clicked()), this, SLOT(showConfigurationInterface())); configLayout->addItem(configWidget, row, 1);