missing getter and property

svn path=/trunk/KDE/kdelibs/; revision=1048845
This commit is contained in:
Aaron J. Seigo 2009-11-14 01:06:58 +00:00
parent 11ca7e2b29
commit 7de7cf8de8
2 changed files with 13 additions and 0 deletions

View File

@ -281,6 +281,11 @@ void PushButton::setCheckable(bool checkable)
nativeWidget()->setCheckable(checkable);
}
bool PushButton::isCheckable() const
{
return nativeWidget()->isCheckable();
}
void PushButton::setChecked(bool checked)
{
nativeWidget()->setChecked(checked);

View File

@ -49,6 +49,7 @@ class PLASMA_EXPORT PushButton : public QGraphicsProxyWidget
Q_PROPERTY(KPushButton *nativeWidget READ nativeWidget)
Q_PROPERTY(QAction *action READ action WRITE setAction)
Q_PROPERTY(QIcon icon READ icon WRITE setIcon)
Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable)
Q_PROPERTY(bool checked READ isChecked WRITE setChecked)
Q_PROPERTY(bool down READ isDown)
@ -150,6 +151,13 @@ public:
*/
void setCheckable(bool checkable);
/**
* @return true if the button is checkable
* @see setCheckable
* @since 4.4
*/
bool isCheckable() const;
/**
* Sets whether or not this button is checked. Implies setIsCheckable(true).
*