add a toolBoxOpen getter to complete the property

svn path=/trunk/KDE/kdelibs/; revision=1136303
This commit is contained in:
Marco Martin 2010-06-09 13:18:04 +00:00
parent 118e9c8394
commit 85d9343669
2 changed files with 11 additions and 0 deletions

View File

@ -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()) {

View File

@ -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
*/