add a toolBoxOpen getter to complete the property
svn path=/trunk/KDE/kdelibs/; revision=1136303
This commit is contained in:
parent
118e9c8394
commit
85d9343669
@ -1812,6 +1812,11 @@ void Containment::setToolBoxOpen(bool open)
|
||||
}
|
||||
}
|
||||
|
||||
bool Containment::isToolBoxOpen() const
|
||||
{
|
||||
return (d->toolBox && d->toolBox.data()->isShowing());
|
||||
}
|
||||
|
||||
void Containment::openToolBox()
|
||||
{
|
||||
if (d->toolBox && !d->toolBox.data()->isShowing()) {
|
||||
|
@ -311,6 +311,12 @@ class PLASMA_EXPORT Containment : public Applet
|
||||
*/
|
||||
void setToolBoxOpen(bool open);
|
||||
|
||||
/**
|
||||
* @return true if the toolbox is open
|
||||
* @since 4.5
|
||||
*/
|
||||
bool isToolBoxOpen() const;
|
||||
|
||||
/**
|
||||
* Open the Containment's toolbox
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user