Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_PUSHBUTTON_H
21 #define PLASMA_PUSHBUTTON_H
23 #include <QtGui/QGraphicsProxyWidget>
34 class PushButtonPrivate;
46 Q_PROPERTY(
QString text READ text WRITE setText)
47 Q_PROPERTY(
QString image READ image WRITE setImage)
48 Q_PROPERTY(
QString styleSheet READ styleSheet WRITE setStyleSheet)
49 Q_PROPERTY(KPushButton *nativeWidget READ nativeWidget)
50 Q_PROPERTY(
QAction *action READ action WRITE setAction)
51 Q_PROPERTY(
QIcon icon READ icon WRITE setIcon)
52 Q_PROPERTY(
bool checkable READ isCheckable WRITE setCheckable)
53 Q_PROPERTY(
bool checked READ isChecked WRITE setChecked)
54 Q_PROPERTY(
bool down READ isDown)
65 void setText(const
QString &text);
77 void setImage(const
QString &path);
99 void setStyleSheet(const
QString &stylesheet);
113 void setAction(
QAction *action);
129 void setIcon(const
QIcon &icon);
138 void setIcon(const KIcon &icon);
152 void setCheckable(
bool checkable);
159 bool isCheckable() const;
167 bool isChecked() const;
178 KPushButton *nativeWidget() const;
217 void setChecked(
bool checked);
226 void changeEvent(
QEvent *event);
227 QSizeF sizeHint(Qt::SizeHint which, const
QSizeF & constraint) const;
230 Q_PRIVATE_SLOT(d,
void syncBorders())
231 Q_PRIVATE_SLOT(d,
void setPixmap())
232 Q_PRIVATE_SLOT(d,
void pressedChanged())
233 Q_PRIVATE_SLOT(d,
void syncToAction())
234 Q_PRIVATE_SLOT(d,
void clearAction())
235 Q_PRIVATE_SLOT(d,
void setPalette())
237 friend class PushButtonPrivate;
238 PushButtonPrivate *const d;
243 #endif // multiple inclusion guard
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.