Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
4
5#ifndef QPUSHBUTTON_P_H
6#define QPUSHBUTTON_P_H
7
8#include <QtWidgets/private/qtwidgetsglobal_p.h>
9#include "private/qabstractbutton_p.h"
10
11#include <QtCore/qpointer.h>
12
14
15//
16// W A R N I N G
17// -------------
18//
19// This file is not part of the Qt API. It exists purely as an
20// implementation detail. This header file may change from version to
21// version without notice, or even be removed.
22//
23// We mean it.
24//
25
26QT_BEGIN_NAMESPACE
27
28class QDialog;
29class QPushButton;
30
32{
33 Q_DECLARE_PUBLIC(QPushButton)
34public:
35 enum AutoDefaultValue { Off = 0, On = 1, Auto = 2 };
36
42
43 void init();
44 static QPushButtonPrivate* get(QPushButton *b) { return b->d_func(); }
45#if QT_CONFIG(menu)
47#endif
50#if QT_CONFIG(dialog)
51 QDialog *dialogParent() const;
52#else
53 QDialog *dialogParent() const { return nullptr; }
54#endif
55
62 mutable uint lastAutoDefault : 1;
63};
64
65QT_END_NAMESPACE
66
67#endif // QPUSHBUTTON_P_H
static QPushButtonPrivate * get(QPushButton *b)
QDialog * dialogParent() const
QPointer< QMenu > menu
QT_REQUIRE_CONFIG(pushbutton)