Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickfolderbreadcrumbbar_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QQUICKFOLDERBREADCRUMBBAR_P_H
5#define QQUICKFOLDERBREADCRUMBBAR_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 <QtQml/qqmlcomponent.h>
19#include <QtQuickTemplates2/private/qquickcontainer_p.h>
20#include <QtQuickTemplates2/private/qquicktextfield_p.h>
21
23
25
27
28class Q_QUICKDIALOGS2QUICKIMPL_PRIVATE_EXPORT QQuickFolderBreadcrumbBar : public QQuickContainer
29{
31 Q_PROPERTY(QQuickDialog *dialog READ dialog WRITE setDialog NOTIFY dialogChanged)
32 Q_PROPERTY(QQmlComponent *buttonDelegate READ buttonDelegate WRITE setButtonDelegate NOTIFY buttonDelegateChanged)
33 Q_PROPERTY(QQmlComponent *separatorDelegate READ separatorDelegate WRITE setSeparatorDelegate NOTIFY separatorDelegateChanged)
34 Q_PROPERTY(QQuickAbstractButton *upButton READ upButton WRITE setUpButton NOTIFY upButtonChanged)
35 Q_PROPERTY(QQuickTextField *textField READ textField WRITE setTextField NOTIFY textFieldChanged)
36 Q_PROPERTY(int upButtonSpacing READ upButtonSpacing WRITE setUpButtonSpacing NOTIFY upButtonSpacingChanged)
37 QML_NAMED_ELEMENT(FolderBreadcrumbBar)
39
40public:
41 explicit QQuickFolderBreadcrumbBar(QQuickItem *parent = nullptr);
42
43 QQuickDialog *dialog() const;
44 void setDialog(QQuickDialog *dialog);
45
47 void setButtonDelegate(QQmlComponent *delegate);
48
50 void setSeparatorDelegate(QQmlComponent *delegate);
51
53 void setUpButton(QQuickAbstractButton *upButton);
54
55 int upButtonSpacing() const;
56 void setUpButtonSpacing(int upButtonSpacing);
57
59 void setTextField(QQuickTextField *textField);
60
68
69protected:
70 bool event(QEvent *event) override;
71 void keyPressEvent(QKeyEvent *event) override;
72
73 void componentComplete() override;
74
75 void itemChange(ItemChange change, const ItemChangeData &data) override;
76
77 bool isContent(QQuickItem *item) const override;
78
79 QFont defaultFont() const override;
80
81#if QT_CONFIG(accessibility)
82 QAccessible::Role accessibleRole() const override;
83#endif
84
85private:
86 Q_DISABLE_COPY(QQuickFolderBreadcrumbBar)
87 Q_DECLARE_PRIVATE(QQuickFolderBreadcrumbBar)
88};
89
91
93
94#endif // QQUICKFOLDERBREADCRUMBBAR_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\reentrant
Definition qfont.h:20
The QKeyEvent class describes a key event.
Definition qevent.h:423
The QQmlComponent class encapsulates a QML component definition.
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
virtual bool isContent(QQuickItem *item) const
void itemChange(ItemChange change, const ItemChangeData &data) override
Called when change occurs for this item.
virtual QFont defaultFont() const
QQuickAbstractButton * upButton()
QQuickTextField * textField()
QQmlComponent * buttonDelegate()
QQmlComponent * separatorDelegate()
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
virtual void keyPressEvent(QKeyEvent *event)
This event handler can be reimplemented in a subclass to receive key press events for an item.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
Definition qquickitem.h:143
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
struct _cl_event * event
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
QFileDialog dialog(this)
[1]
QGraphicsItem * item
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
\inmodule QtQuick
Definition qquickitem.h:158