Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickbutton.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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#include "qquickbutton_p.h"
5#include "qquickbutton_p_p.h"
6
7#include <QtGui/qpa/qplatformtheme.h>
8
10
15
56{
57}
58
61{
62}
63
65{
67}
68
82{
83 Q_D(const QQuickButton);
84 return d->highlighted;
85}
86
87void QQuickButton::setHighlighted(bool highlighted)
88{
89 Q_D(QQuickButton);
90 if (highlighted == d->highlighted)
91 return;
92
93 d->highlighted = highlighted;
95}
96
109{
110 Q_D(const QQuickButton);
111 return d->flat;
112}
113
115{
116 Q_D(QQuickButton);
117 if (flat == d->flat)
118 return;
119
120 d->flat = flat;
122}
123
125{
127}
128
130
131#include "moc_qquickbutton_p.cpp"
\reentrant
Definition qfont.h:20
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
QPalette defaultPalette() const override
void flatChanged()
QFont defaultFont() const override
bool isHighlighted() const
\qmlproperty bool QtQuick.Controls::Button::highlighted
bool isFlat() const
\qmlproperty bool QtQuick.Controls::Button::flat
void highlightedChanged()
void setFlat(bool flat)
void setHighlighted(bool highlighted)
QQuickButton(QQuickItem *parent=nullptr)
Push-button that can be clicked to perform a command or answer a question.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
static QPalette palette(Scope scope)
static QFont font(Scope scope)
Combined button and popup list for selecting options.
#define emit
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent