Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qpushbutton_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPUSHBUTTON_P_H
5#define QPUSHBUTTON_P_H
6
7#include <QtWidgets/private/qtwidgetsglobal_p.h>
8#include "private/qabstractbutton_p.h"
9
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
24
25class QDialog;
26class QPushButton;
27
29{
30 Q_DECLARE_PUBLIC(QPushButton)
31public:
32 enum AutoDefaultValue { Off = 0, On = 1, Auto = 2 };
33
38 {}
39
40 void init();
41 static QPushButtonPrivate* get(QPushButton *b) { return b->d_func(); }
42#if QT_CONFIG(menu)
43 QPoint adjustedMenuPosition();
44#endif
47#if QT_CONFIG(dialog)
48 QDialog *dialogParent() const;
49#else
50 QDialog *dialogParent() const { return nullptr; }
51#endif
52
59 mutable uint lastAutoDefault : 1;
60};
61
63
64#endif // QPUSHBUTTON_P_H
The QDialog class is the base class of dialog windows.
Definition qdialog.h:19
\inmodule QtCore\reentrant
Definition qpoint.h:23
\inmodule QtCore
Definition qpointer.h:18
static QPushButtonPrivate * get(QPushButton *b)
QDialog * dialogParent() const
QPointer< QMenu > menu
The QPushButton widget provides a command button.
Definition qpushbutton.h:20
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
Definition qsizepolicy.h:18
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
#define QT_REQUIRE_CONFIG(feature)
unsigned int uint
Definition qtypes.h:29