provide isDown as well

svn path=/trunk/KDE/kdelibs/; revision=1031646
This commit is contained in:
Marco Martin 2009-10-05 17:16:09 +00:00
parent 23d1402a5d
commit 3db6d84c03
2 changed files with 11 additions and 0 deletions

View File

@ -267,6 +267,11 @@ QString ToolButton::image() const
return d->imagePath;
}
bool ToolButton::isDown() const
{
return nativeWidget()->isDown();
}
void ToolButton::setStyleSheet(const QString &stylesheet)
{
widget()->setStyleSheet(stylesheet);

View File

@ -98,6 +98,12 @@ public:
*/
QString image() const;
/**
* @return true if the button is pressed down
* @since 4.4
*/
bool isDown() const;
/**
* Sets the stylesheet used to control the visual display of this ToolButton
*