provide isDown as well
svn path=/trunk/KDE/kdelibs/; revision=1031646
This commit is contained in:
parent
23d1402a5d
commit
3db6d84c03
@ -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);
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user