Added setDown(bool) to Plasma::ToolButton.
svn path=/trunk/KDE/kdelibs/; revision=1077191
This commit is contained in:
parent
2ca0143367
commit
1202423649
@ -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();
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user