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
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_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:
42
43 QQuickDialog *dialog() const;
44 void setDialog(QQuickDialog *dialog);
45
46 QQmlComponent *buttonDelegate();
47 void setButtonDelegate(QQmlComponent *delegate);
48
49 QQmlComponent *separatorDelegate();
50 void setSeparatorDelegate(QQmlComponent *delegate);
51
53 void setUpButton(QQuickAbstractButton *upButton);
54
55 int upButtonSpacing() const;
56 void setUpButtonSpacing(int upButtonSpacing);
57
58 QQuickTextField *textField();
59 void setTextField(QQuickTextField *textField);
60
62 void dialogChanged();
63 void buttonDelegateChanged();
64 void separatorDelegateChanged();
65 void upButtonChanged();
66 void upButtonSpacingChanged();
67 void textFieldChanged();
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
92#endif // QQUICKFOLDERBREADCRUMBBAR_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\reentrant
Definition qfont.h:22
The QKeyEvent class describes a key event.
Definition qevent.h:424
The QQmlComponent class encapsulates a QML component definition.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
Definition qquickitem.h:144
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
struct _cl_event * event
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit
QFileDialog dialog(this)
[1]
QGraphicsItem * item
\inmodule QtQuick
Definition qquickitem.h:159