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
qabstractbutton_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 QABSTRACTBUTTON_P_H
5#define QABSTRACTBUTTON_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "qabstractbutton.h"
20
21#include "QtCore/qbasictimer.h"
22#include "private/qwidget_p.h"
23
25
27{
28 Q_DECLARE_PUBLIC(QAbstractButton)
29public:
31
35#ifndef QT_NO_SHORTCUT
38#endif
46
47#if QT_CONFIG(buttongroup)
49#endif
52
54
56 mutable QSize sizeHint;
57
58 void init();
59 void click();
60 void refresh();
61
62 QList<QAbstractButton *>queryButtonList() const;
64 void notifyChecked();
65 void moveFocus(int key);
66 void fixFocusPolicy();
67
68 void emitPressed();
69 void emitReleased();
70 void emitClicked();
71 void emitToggled(bool checked);
72};
73
75
76#endif // QABSTRACTBUTTON_P_H
QList< QAbstractButton * > queryButtonList() const
QSizePolicy::ControlType controlType
QAbstractButton * queryCheckedButton() const
void emitToggled(bool checked)
QAbstractButtonPrivate(QSizePolicy::ControlType type=QSizePolicy::DefaultType)
The QAbstractButton class is the abstract base class of button widgets, providing functionality commo...
\inmodule QtCore
Definition qbasictimer.h:18
The QButtonGroup class provides a container to organize groups of button widgets.
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
The QKeySequence class encapsulates a key sequence as used by shortcuts.
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint64 key
GLenum type
GLboolean GLuint group
unsigned int uint
Definition qtypes.h:34