Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
10#include <QtCore/qpointer.h>
11
13
14//
15// W A R N I N G
16// -------------
17//
18// This file is not part of the Qt API. It exists purely as an
19// implementation detail. This header file may change from version to
20// version without notice, or even be removed.
21//
22// We mean it.
23//
24
26
27class QDialog;
28class QPushButton;
29
31{
32 Q_DECLARE_PUBLIC(QPushButton)
33public:
34 enum AutoDefaultValue { Off = 0, On = 1, Auto = 2 };
35
41
42 void init();
43 static QPushButtonPrivate* get(QPushButton *b) { return b->d_func(); }
44#if QT_CONFIG(menu)
45 QPoint adjustedMenuPosition();
46#endif
49#if QT_CONFIG(dialog)
50 QDialog *dialogParent() const;
51#else
52 QDialog *dialogParent() const { return nullptr; }
53#endif
54
55 QPointer<QMenu> menu;
61 mutable uint lastAutoDefault : 1;
62};
63
65
66#endif // QPUSHBUTTON_P_H
The QDialog class is the base class of dialog windows.
Definition qdialog.h:19
\inmodule QtCore\reentrant
Definition qpoint.h:25
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:34