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
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// Qt-Security score:significant reason:default
4
5#ifndef QABSTRACTBUTTON_P_H
6#define QABSTRACTBUTTON_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
21
22#include "QtCore/qbasictimer.h"
23#include "private/qwidget_p.h"
24#include "QtWidgets/qstyle.h"
25
27
29{
30 Q_DECLARE_PUBLIC(QAbstractButton)
31public:
33
37#ifndef QT_NO_SHORTCUT
40#endif
48
49#if QT_CONFIG(buttongroup)
51#endif
54
56
58 mutable QSize sizeHint;
59
60 void init();
61 void click();
62 void refresh();
63
66 void notifyChecked();
67 void moveFocus(int key);
68 void fixFocusPolicy();
69
70 void emitPressed();
71 void emitReleased();
72 void emitClicked();
73 void emitToggled(bool checked);
74
75 // ### Qt7: add a public virtual initStyleOption()
76 // returns additional button states for QStyleOption
77 virtual QStyle::State styleButtonState(QStyle::State state) const;
78};
79
80QT_END_NAMESPACE
81
82#endif // QABSTRACTBUTTON_P_H
QList< QAbstractButton * > queryButtonList() const
QSizePolicy::ControlType controlType
QAbstractButton * queryCheckedButton() const
virtual QStyle::State styleButtonState(QStyle::State state) const
void emitToggled(bool checked)
friend class QWidget
Definition qpainter.h:431
Combined button and popup list for selecting options.
#define AUTO_REPEAT_DELAY
#define AUTO_REPEAT_INTERVAL
Q_WIDGETS_EXPORT bool qt_tab_all_widgets()