hook up the containment configuration interface to the generic containment configuration mechanism; now it shows in the toolbox too! whee!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859593
This commit is contained in:
parent
bf942582e8
commit
c633c8ac57
@ -1182,6 +1182,7 @@ void Applet::showConfigurationInterface()
|
||||
if (!hasConfigurationInterface()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (immutability() != Mutable && !KAuthorized::authorize("PlasmaAllowConfigureWhenLocked")) {
|
||||
return;
|
||||
}
|
||||
|
@ -1391,6 +1391,12 @@ void Containment::destroy(bool confirm)
|
||||
}
|
||||
}
|
||||
|
||||
void Containment::showConfigurationInterface()
|
||||
{
|
||||
if (isContainment()) {
|
||||
emit configureRequested();
|
||||
}
|
||||
}
|
||||
|
||||
// Private class implementation
|
||||
|
||||
|
@ -426,6 +426,10 @@ class PLASMA_EXPORT Containment : public Applet
|
||||
*/
|
||||
void destroy(bool confirm);
|
||||
|
||||
/**
|
||||
* @reimplemented from Plasma::Applet
|
||||
*/
|
||||
void showConfigurationInterface();
|
||||
protected:
|
||||
/**
|
||||
* Sets the type of this containment.
|
||||
|
Loading…
x
Reference in New Issue
Block a user