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
qquickitemdelegate.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
6#include "qquickcontrol_p_p.h"
7
8#include <QtGui/qpa/qplatformtheme.h>
9
11
16
40
46
74{
75 Q_D(const QQuickItemDelegate);
76 return d->highlighted;
77}
78
80{
82 if (highlighted == d->highlighted)
83 return;
84
85 d->highlighted = highlighted;
87}
88
93
94#if QT_CONFIG(accessibility)
95QAccessible::Role QQuickItemDelegate::accessibleRole() const
96{
97 return QAccessible::ListItem;
98}
99#endif
100
105
107
108#include "moc_qquickitemdelegate_p.cpp"
\reentrant
Definition qfont.h:22
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
QPalette defaultPalette() const override
QQuickItemDelegate(QQuickItem *parent=nullptr)
Basic item delegate that can be used in various views and controls.
QFont defaultFont() const override
bool isHighlighted() const
\qmlproperty bool QtQuick.Controls::ItemDelegate::highlighted
void setHighlighted(bool highlighted)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
void setFocusPolicy(Qt::FocusPolicy policy)
Sets the focus policy of this item to policy.
static QPalette palette(Scope scope)
static QFont font(Scope scope)
Combined button and popup list for selecting options.
@ NoFocus
Definition qnamespace.h:107
#define emit