api fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=762849
This commit is contained in:
parent
840888d9d5
commit
467eadedda
@ -660,7 +660,7 @@ void Applet::setImmutable(bool immutable)
|
||||
updateConstraints(ImmutableConstraint);
|
||||
}
|
||||
|
||||
bool Applet::drawStandardBackground()
|
||||
bool Applet::drawStandardBackground() const
|
||||
{
|
||||
return d->background != 0;
|
||||
}
|
||||
@ -807,6 +807,13 @@ void Applet::flushUpdatedConstraints()
|
||||
}
|
||||
}
|
||||
|
||||
void Applet::launchActivated()
|
||||
{
|
||||
if (containment()) {
|
||||
containment()->emitLaunchActivated();
|
||||
}
|
||||
}
|
||||
|
||||
int Applet::type() const
|
||||
{
|
||||
return Type;
|
||||
|
14
applet.h
14
applet.h
@ -457,7 +457,7 @@ class PLASMA_EXPORT Applet : public Widget
|
||||
* @return returns whether or not the applet is using the standard
|
||||
* background
|
||||
**/
|
||||
bool drawStandardBackground();
|
||||
bool drawStandardBackground() const;
|
||||
|
||||
/**
|
||||
* Sets whether the applet should automatically draw the standard
|
||||
@ -588,6 +588,11 @@ class PLASMA_EXPORT Applet : public Widget
|
||||
*/
|
||||
void resetConfigurationObject();
|
||||
|
||||
/**
|
||||
* @return the Containment, if any, this applet belongs to
|
||||
**/
|
||||
Containment* containment() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* Emitted when the applet needs to take (or lose) keyboard focus.
|
||||
@ -649,9 +654,10 @@ class PLASMA_EXPORT Applet : public Widget
|
||||
void flushUpdatedConstraints();
|
||||
|
||||
/**
|
||||
* @return the Containment, if any, this applet belongs to
|
||||
**/
|
||||
Containment* containment() const;
|
||||
* This method should be invoked whenever an application launch or other window
|
||||
* creation of focussing event was triggered
|
||||
*/
|
||||
void launchActivated();
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user