Qt 4.8
Public Types | Public Functions | Static Public Functions | Public Variables | List of all members
QPushButtonPrivate Class Reference

#include <qpushbutton_p.h>

Inheritance diagram for QPushButtonPrivate:
QAbstractButtonPrivate QWidgetPrivate QObjectPrivate QObjectData QCommandLinkButtonPrivate

Public Types

enum  AutoDefaultValue { Off = 0, On = 1, Auto = 2 }
 
- Public Types inherited from QWidgetPrivate
enum  CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent }
 
enum  Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 }
 
enum  DrawWidgetFlags {
  DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08,
  DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Public Functions

void _q_popupPressed ()
 
QPoint adjustedMenuPosition ()
 
QDialogdialogParent () const
 
bool hitButton (const QPoint &pos)
 
void init ()
 
 QPushButtonPrivate ()
 
void resetLayoutItemMargins ()
 
- Public Functions inherited from QAbstractButtonPrivate
void click ()
 
void emitClicked ()
 
void emitPressed ()
 
void emitReleased ()
 
void fixFocusPolicy ()
 
void init ()
 
void moveFocus (int key)
 
void notifyChecked ()
 
 QAbstractButtonPrivate (QSizePolicy::ControlType type=QSizePolicy::DefaultType)
 
QList< QAbstractButton * > queryButtonList () const
 
QAbstractButtonqueryCheckedButton () const
 
void refresh ()
 
- Public Functions inherited from QWidgetPrivate
void _q_showIfNotHidden ()
 
virtual void aboutToDestroy ()
 
void activateChildLayoutsRecursively ()
 
QSize adjustedSize () const
 
void adjustQuitOnCloseAttribute ()
 
QInputContextassignedInputContext () const
 
QPainterbeginSharedPainter ()
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void clipToEffectiveMask (QRegion &region) const
 
bool close_helper (CloseMode mode)
 
void create_sys (WId window, bool initializeWindow, bool destroyOldWindow)
 
QWindowSurfacecreateDefaultWindowSurface ()
 
QWindowSurfacecreateDefaultWindowSurface_sys ()
 
void createExtra ()
 Creates the widget extra data. More...
 
void createRecursively ()
 
void createSysExtra ()
 
void createTLExtra ()
 
void createTLSysExtra ()
 
void createWinId (WId id=0)
 
void deactivateWidgetCleanup ()
 
void deleteExtra ()
 Deletes the widget extra data. More...
 
void deleteSysExtra ()
 
void deleteTLSysExtra ()
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0)
 
QWidgeteffectiveFocusWidget ()
 
QRect effectiveRectFor (const QRect &rect) const
 
bool endSharedPainter ()
 
void enforceNativeChildren ()
 
QWExtraextraData () const
 
QRect frameStrut () const
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
const QRegiongetOpaqueChildren () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
virtual bool hasHeightForWidth () const
 
void hide_helper ()
 
void hide_sys ()
 Platform-specific part of QWidget::hide(). More...
 
void hideChildren (bool spontaneous)
 
void inheritStyle ()
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
QInputContextinputContext () const
 
void invalidateBuffer (const QRegion &)
 Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More...
 
void invalidateBuffer (const QRect &)
 This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More...
 
void invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the buffer when the widget is resized. More...
 
void invalidateGraphicsEffectsRecursively ()
 
bool isAboutToShow () const
 
bool isBackgroundInherited () const
 
bool isOverlapped (const QRect &) const
 
void lower_sys ()
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QWidgetBackingStoremaybeBackingStore () const
 
QTLWExtramaybeTopData () const
 
void moveRect (const QRect &, int dx, int dy)
 
bool nativeChildrenForced () const
 
QFont naturalWidgetFont (uint inheritedMask) const
 
QPalette naturalWidgetPalette (uint inheritedMask) const
 Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More...
 
void paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const
 
bool paintOnScreen () const
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore)
 
bool pointInsideRectAndMask (const QPoint &) const
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void propagatePaletteChange ()
 Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More...
 
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
void raise_sys ()
 
QPaintDeviceredirected (QPoint *offset) const
 
void registerDropSite (bool)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void repaint_sys (const QRegion &rgn)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void resolveFont ()
 Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More...
 
void resolveLayoutDirection ()
 
void resolveLocale ()
 
void resolvePalette ()
 Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More...
 
void restoreRedirected ()
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void scrollChildren (int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void sendStartupMessage (const char *message) const
 Platform-specific part of QWidget::show(). More...
 
void setConstraints_sys ()
 
void setCursor_sys (const QCursor &cursor)
 
void setDirtyOpaqueRegion ()
 
void setEnabled_helper (bool)
 
void setFocus_sys ()
 
void setFont_helper (const QFont &font)
 
void setGeometry_sys (int, int, int, int, bool)
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0)
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void setMask_sys (const QRegion &)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
void setModal_sys ()
 
void setNetWmWindowTypes ()
 
void setOpaque (bool opaque)
 
void setPalette_helper (const QPalette &)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
void setSharedPainter (QPainter *painter)
 
void setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false)
 
void setUpdatesEnabled_helper (bool)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys (bool forceReset=false)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowOpacity_sys (qreal opacity)
 
void setWindowRole ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWinId (WId)
 
QPaintersharedPainter () const
 
void show_helper ()
 
void show_recursive ()
 Makes the widget visible in the isVisible() meaning of the word. More...
 
void show_sys ()
 Platform-specific part of QWidget::show(). More...
 
void showChildren (bool spontaneous)
 
void stackUnder_sys (QWidget *)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
QTLWExtratopData () const
 
void unsetCursor_sys ()
 
void updateFont (const QFont &)
 Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More...
 
void updateFrameStrut ()
 Computes the frame rectangle when needed. More...
 
void updateGeometry_helper (bool forceUpdate)
 
void updateIsOpaque ()
 
void updateIsTranslucent ()
 
void updateSystemBackground ()
 
void updateX11AcceptFocus ()
 
void x11UpdateIsOpaque ()
 
 ~QWidgetPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Static Public Functions

static QPushButtonPrivateget (QPushButton *b)
 
- Static Public Functions inherited from QWidgetPrivate
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=0)
 
static QGraphicsProxyWidgetnearestGraphicsProxyWidget (const QWidget *origin)
 Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More...
 
static int pointToRect (const QPoint &p, const QRect &r)
 
static QRect screenGeometry (const QWidget *widget)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

uint autoDefault: 2
 
uint defaultButton: 1
 
uint flat: 1
 
uint lastAutoDefault: 1
 
QPointer< QMenumenu
 
uint menuOpen: 1
 
- Public Variables inherited from QAbstractButtonPrivate
QBasicTimer animateTimer
 
uint autoExclusive:1
 
uint autoRepeat:1
 
int autoRepeatDelay
 
int autoRepeatInterval
 
uint blockRefresh:1
 
uint checkable:1
 
uint checked:1
 
QSizePolicy::ControlType controlType
 
uint down:1
 
QButtonGroupgroup
 
QIcon icon
 
QSize iconSize
 
uint pressed: 1
 
QBasicTimer repeatTimer
 
QKeySequence shortcut
 
int shortcutId
 
QSize sizeHint
 
QString text
 
- Public Variables inherited from QWidgetPrivate
QString accessibleDescription
 
QString accessibleName
 
QList< QAction * > actions
 
QPalette::ColorRole bg_role: 8
 
signed char bottomLayoutItemMargin
 
short bottommargin
 
QWidgetData data
 
QRegion dirty
 
uint dirtyOpaqueChildren: 1
 
QWExtraextra
 
QPaintEngineextraPaintEngine
 
QPalette::ColorRole fg_role: 8
 
QWidgetfocus_child
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
QGraphicsEffectgraphicsEffect
 
Qt::HANDLE hd
 
uint high_attributes [4]
 
QPointer< QInputContextic
 
Qt::InputMethodHints imHints
 
uint inDirtyList: 1
 
uint inheritedFontResolveMask
 
uint inheritedPaletteResolveMask
 
uint inheritsInputMethodHints: 1
 
uint inSetParent: 1
 
uint isGLWidget: 1
 
uint isMoved: 1
 
uint isOpaque: 1
 
uint isScrolled: 1
 
QLayoutlayout
 
signed char leftLayoutItemMargin
 
short leftmargin
 
QLocale locale
 
QRegionneedsFlush
 
QRegion opaqueChildren
 
Qt::HANDLE picture
 
const QMetaObjectpolished
 
QPaintDeviceredirectDev
 
QPoint redirectOffset
 
signed char rightLayoutItemMargin
 
short rightmargin
 
QSizePolicy size_policy
 
QString statusTip
 
QString toolTip
 
signed char topLayoutItemMargin
 
short topmargin
 
uint usesDoubleBufferedGLContext: 1
 
QString whatsThis
 
QWidgetItemV2widgetItem
 
QX11Info xinfo
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Static Public Variables inherited from QWidgetPrivate
static QWidgetSetallWidgets = 0
 
static int instanceCounter = 0
 
static QWidgetkeyboardGrabber = 0
 
static QWidgetMappermapper = 0
 
static int maxInstances = 0
 
static QWidgetmouseGrabber = 0
 

Detailed Description

Definition at line 60 of file qpushbutton_p.h.

Enumerations

◆ AutoDefaultValue

Enumerator
Off 
On 
Auto 

Definition at line 64 of file qpushbutton_p.h.

Constructors and Destructors

◆ QPushButtonPrivate()

QPushButtonPrivate::QPushButtonPrivate ( )
inline

Definition at line 66 of file qpushbutton_p.h.

Functions

◆ _q_popupPressed()

void QPushButtonPrivate::_q_popupPressed ( )

Definition at line 587 of file qpushbutton.cpp.

Referenced by get().

588 {
589  Q_Q(QPushButton);
590  if (!down || !menu)
591  return;
592 
593  menu->setNoReplayFor(q);
594 
595  QPoint menuPos = adjustedMenuPosition();
596 
597  QPointer<QPushButton> guard(q);
599 
600  //Because of a delay in menu effects, we must keep track of the
601  //menu visibility to avoid flicker on button release
602  menuOpen = true;
603  menu->exec(menuPos);
604  if (guard) {
605  menuOpen = false;
606  q->setDown(false);
607  }
608 }
void setNoReplayFor(QWidget *widget)
Definition: qmenu.cpp:3164
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
#define Q_Q(Class)
Definition: qglobal.h:2483
QPoint adjustedMenuPosition()
QMenuCaused causedPopup
Definition: qmenu_p.h:263
QAction * exec()
Executes this menu synchronously.
Definition: qmenu.cpp:2101
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
QPointer< QMenu > menu
Definition: qpushbutton_p.h:82
static QMenuPrivate * get(QMenu *m)
Definition: qmenu_p.h:186
QPointer< QWidget > widget
Definition: qmenu_p.h:259

◆ adjustedMenuPosition()

QPoint QPushButtonPrivate::adjustedMenuPosition ( )

Definition at line 610 of file qpushbutton.cpp.

Referenced by get(), and QMenu::popup().

611 {
612  Q_Q(QPushButton);
613 
614  bool horizontal = true;
615 #if !defined(QT_NO_TOOLBAR)
617  if (tb && tb->orientation() == Qt::Vertical)
618  horizontal = false;
619 #endif
620 
621  QWidgetItem item(q);
622  QRect rect = item.geometry();
623  rect.setRect(rect.x() - q->x(), rect.y() - q->y(), rect.width(), rect.height());
624 
625  QSize menuSize = menu->sizeHint();
626  QPoint globalPos = q->mapToGlobal(rect.topLeft());
627  int x = globalPos.x();
628  int y = globalPos.y();
629  if (horizontal) {
630  if (globalPos.y() + rect.height() + menuSize.height() <= QApplication::desktop()->availableGeometry(q).height()) {
631  y += rect.height();
632  } else {
633  y -= menuSize.height();
634  }
635  if (q->layoutDirection() == Qt::RightToLeft)
636  x += rect.width() - menuSize.width();
637  } else {
638  if (globalPos.x() + rect.width() + menu->sizeHint().width() <= QApplication::desktop()->availableGeometry(q).width())
639  x += rect.width();
640  else
641  x -= menuSize.width();
642  }
643 
644  return QPoint(x,y);
645 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
QSize sizeHint() const
Reimplemented Function
Definition: qmenu.cpp:1805
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
#define Q_Q(Class)
Definition: qglobal.h:2483
int width() const
Returns the width.
Definition: qsize.h:126
The QToolBar class provides a movable panel that contains a set of controls.
Definition: qtoolbar.h:62
The QWidgetItem class is a layout item that represents a widget.
Definition: qlayoutitem.h:122
static QDesktopWidget * desktop()
Returns the desktop widget (also called the root window).
Qt::Orientation orientation() const
orientation of the toolbar
Definition: qtoolbar.cpp:769
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252
void setRect(int x, int y, int w, int h)
Sets the coordinates of the rectangle&#39;s top-left corner to ({x}, {y}), and its size to the given widt...
Definition: qrect.h:400
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
int height() const
Returns the height.
Definition: qsize.h:129
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
int y() const
Returns the y coordinate of this point.
Definition: qpoint.h:131
QObject * parent
Definition: qobject.h:92
QPointer< QMenu > menu
Definition: qpushbutton_p.h:82
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
int x() const
Returns the x coordinate of this point.
Definition: qpoint.h:128
const QRect availableGeometry(int screen=-1) const
QPoint topLeft() const
Returns the position of the rectangle&#39;s top-left corner.
Definition: qrect.h:288

◆ dialogParent()

QDialog * QPushButtonPrivate::dialogParent ( ) const

Definition at line 310 of file qpushbutton.cpp.

Referenced by get().

311 {
312  Q_Q(const QPushButton);
313  const QWidget *p = q;
314  while (p && !p->isWindow()) {
315  p = p->parentWidget();
316  if (const QDialog *dialog = qobject_cast<const QDialog *>(p))
317  return const_cast<QDialog *>(dialog);
318  }
319  return 0;
320 }
QWidget * parentWidget() const
Returns the parent of this widget, or 0 if it does not have any parent widget.
Definition: qwidget.h:1035
The QDialog class is the base class of dialog windows.
Definition: qdialog.h:56
bool isWindow() const
Returns true if the widget is an independent window, otherwise returns false.
Definition: qwidget.h:945
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
#define Q_Q(Class)
Definition: qglobal.h:2483

◆ get()

static QPushButtonPrivate* QPushButtonPrivate::get ( QPushButton b)
inlinestatic

Definition at line 71 of file qpushbutton_p.h.

Referenced by QMenu::popup().

71 { return b->d_func(); }

◆ hitButton()

bool QPushButtonPrivate::hitButton ( const QPoint pos)

Definition at line 717 of file qpushbutton.cpp.

Referenced by get(), and QPushButton::hitButton().

718 {
719  Q_Q(QPushButton);
720  QRect roundedRect(q->rect().left() + QMacStylePrivate::PushButtonLeftOffset,
722  q->rect().width() - QMacStylePrivate::PushButtonRightOffset,
723  q->rect().height() - QMacStylePrivate::PushButtonBottomOffset);
724  return roundedRect.contains(pos);
725 }
static const int PushButtonBottomOffset
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
static const int PushButtonLeftOffset
#define Q_Q(Class)
Definition: qglobal.h:2483
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...
Definition: qrect.cpp:1101
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
static const int PushButtonContentPadding
static const int PushButtonRightOffset

◆ init()

void QPushButtonPrivate::init ( )
inline

Definition at line 70 of file qpushbutton_p.h.

Referenced by QCommandLinkButtonPrivate::init().

◆ resetLayoutItemMargins()

void QPushButtonPrivate::resetLayoutItemMargins ( )

Definition at line 649 of file qpushbutton.cpp.

Referenced by get(), and init().

650 {
651  Q_Q(QPushButton);
652  QStyleOptionButton opt;
653  q->initStyleOption(&opt);
655 }
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
void setLayoutItemMargins(int left, int top, int right, int bottom)
Definition: qwidget.cpp:12860
#define Q_Q(Class)
Definition: qglobal.h:2483
The QStyleOptionButton class is used to describe the parameters for drawing buttons.
Definition: qstyleoption.h:279

Properties

◆ autoDefault

uint QPushButtonPrivate::autoDefault

Definition at line 83 of file qpushbutton_p.h.

◆ defaultButton

uint QPushButtonPrivate::defaultButton

Definition at line 84 of file qpushbutton_p.h.

◆ flat

uint QPushButtonPrivate::flat

Definition at line 85 of file qpushbutton_p.h.

◆ lastAutoDefault

uint QPushButtonPrivate::lastAutoDefault
mutable

Definition at line 87 of file qpushbutton_p.h.

◆ menu

QPointer<QMenu> QPushButtonPrivate::menu

Definition at line 82 of file qpushbutton_p.h.

◆ menuOpen

uint QPushButtonPrivate::menuOpen

Definition at line 86 of file qpushbutton_p.h.


The documentation for this class was generated from the following files: