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
qquicktoolseparator.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
5
6#include "qquickcontrol_p_p.h"
7
9
14
40
45
56{
57 Q_D(const QQuickToolSeparator);
58 return d->orientation;
59}
60
62{
64 if (d->orientation == orientation)
65 return;
66
67 d->orientation = orientation;
69}
70
82{
83 Q_D(const QQuickToolSeparator);
84 return d->orientation == Qt::Horizontal;
85}
86
98{
99 Q_D(const QQuickToolSeparator);
100 return d->orientation == Qt::Vertical;
101}
102
107
108#if QT_CONFIG(accessibility)
109QAccessible::Role QQuickToolSeparator::accessibleRole() const
110{
111 return QAccessible::Separator;
112}
113#endif
114
116
117#include "moc_qquicktoolseparator_p.cpp"
\reentrant
Definition qfont.h:22
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
static QPalette palette(Scope scope)
static QFont font(Scope scope)
Separates a group of items in a toolbar from adjacent items.
QPalette defaultPalette() const override
bool isVertical() const
\readonly \qmlproperty bool QtQuick.Controls::ToolSeparator::vertical
void setOrientation(Qt::Orientation orientation)
QFont defaultFont() const override
QQuickToolSeparator(QQuickItem *parent=nullptr)
bool isHorizontal() const
\readonly \qmlproperty bool QtQuick.Controls::ToolSeparator::horizontal
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:98
@ Horizontal
Definition qnamespace.h:99
@ Vertical
Definition qnamespace.h:100
#define emit