51 #include "private/qabstractbutton_p.h" 71 q->setCheckable(
true);
72 q->setAutoExclusive(
true);
73 q->setMouseTracking(
true);
175 option->
text =
d->text;
176 option->
icon =
d->icon;
195 if (
d->sizeHint.isValid())
239 if (hit !=
d->hovering) {
#define QT_END_NAMESPACE
This macro expands to.
static QString fromAscii(const char *, int size=-1)
Returns a QString initialized with the first size characters from the string str. ...
void drawControl(QStyle::ControlElement ce, const QStyleOption &opt)
Use the widget's style to draw a control element ce specified by QStyleOption option.
QStyle::State state
the style flags that are used when drawing the control
static QSize globalStrut()
The QString class provides a Unicode character string.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
const QPoint & pos() const
Returns the position of the mouse cursor, relative to the widget that received the event...
void setObjectName(const QString &name)
int width() const
Returns the width.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QRect itemTextRect(const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const
Returns the area within the given rectangle in which to draw the provided text according to the speci...
void initFrom(const QWidget *w)
QSize size() const
Returns the size of the rectangle.
bool isNull() const
Returns true if the icon is empty; otherwise returns false.
bool contains(const QPoint &p, bool proper=false) const
Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false...
The QMouseEvent class contains parameters that describe a mouse event.
virtual QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w=0) const =0
Returns the size of the element described by the specified option and type, based on the provided con...
#define Q_DECLARE_PUBLIC(Class)
virtual QRect subElementRect(SubElement subElement, const QStyleOption *option, const QWidget *widget=0) const =0
Returns the sub-area for the given element as described in the provided style option.
QObject * parent() const
Returns a pointer to the parent object.
The QPoint class defines a point in the plane using integer precision.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget...
The QSize class defines the size of a two-dimensional object using integer point precision.
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.