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
This commit is contained in:
parent
5b2983c17e
commit
6191e5c9ee
@ -1008,7 +1008,13 @@ void Applet::setConfigurationRequired(bool needsConfig, const QString &reason)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PushButton *configWidget = new PushButton(d->messageOverlay);
|
PushButton *configWidget = new PushButton(d->messageOverlay);
|
||||||
|
if (!qobject_cast<Plasma::PopupApplet *>(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..."));
|
configWidget->setText(i18n("Configure..."));
|
||||||
|
}
|
||||||
connect(configWidget, SIGNAL(clicked()), this, SLOT(showConfigurationInterface()));
|
connect(configWidget, SIGNAL(clicked()), this, SLOT(showConfigurationInterface()));
|
||||||
configLayout->addItem(configWidget, row, 1);
|
configLayout->addItem(configWidget, row, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user