Added setDown(bool) to Plasma::ToolButton.

svn path=/trunk/KDE/kdelibs/; revision=1077191
This commit is contained in:
Davide Bettio 2010-01-19 16:20:41 +00:00
parent 2ca0143367
commit 1202423649
2 changed files with 13 additions and 0 deletions

View File

@ -273,6 +273,11 @@ QString ToolButton::image() const
return d->imagePath; return d->imagePath;
} }
void ToolButton::setDown(bool down)
{
nativeWidget()->setDown(down);
}
bool ToolButton::isDown() const bool ToolButton::isDown() const
{ {
return nativeWidget()->isDown(); return nativeWidget()->isDown();

View File

@ -98,6 +98,14 @@ public:
*/ */
QString image() const; QString image() const;
/**
* Sets the status of the button to pressed
*
* @arg down
* @since 4.5
*/
void setDown(bool down);
/** /**
* @return true if the button is pressed down * @return true if the button is pressed down
* @since 4.4 * @since 4.4