missing getter and property
svn path=/trunk/KDE/kdelibs/; revision=1048845
This commit is contained in:
parent
11ca7e2b29
commit
7de7cf8de8
@ -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);
|
||||
|
@ -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).
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user