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
qquicktabbar_p.h
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#ifndef QQUICKTABBAR_P_H
5#define QQUICKTABBAR_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 <QtQuickTemplates2/private/qquickcontainer_p.h>
19
20QT_REQUIRE_CONFIG(quicktemplates2_container);
21
23
27
28class Q_QUICKTEMPLATES2_EXPORT QQuickTabBar : public QQuickContainer
29{
31 Q_PROPERTY(Position position READ position WRITE setPosition NOTIFY positionChanged FINAL)
32 QML_NAMED_ELEMENT(TabBar)
35
36public:
37 explicit QQuickTabBar(QQuickItem *parent = nullptr);
38
39 enum Position {
41 Footer
42 };
43 Q_ENUM(Position)
44
45 Position position() const;
46 void setPosition(Position position);
47
48 static QQuickTabBarAttached *qmlAttachedProperties(QObject *object);
49
52
53protected:
54 void updatePolish() override;
55 void componentComplete() override;
56 void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
57 bool isContent(QQuickItem *item) const override;
58 void itemAdded(int index, QQuickItem *item) override;
59 void itemMoved(int index, QQuickItem *item) override;
60 void itemRemoved(int index, QQuickItem *item) override;
61#if QT_CONFIG(wheelevent)
62 void wheelEvent(QWheelEvent *event) override;
63#endif
64
65 QFont defaultFont() const override;
66
67#if QT_CONFIG(accessibility)
68 QAccessible::Role accessibleRole() const override;
69#endif
70
71private:
72 Q_DISABLE_COPY(QQuickTabBar)
73 Q_DECLARE_PRIVATE(QQuickTabBar)
74};
75
76class Q_QUICKTEMPLATES2_EXPORT QQuickTabBarAttached : public QObject
77{
79 Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL)
80 Q_PROPERTY(QQuickTabBar *tabBar READ tabBar NOTIFY tabBarChanged FINAL)
81 Q_PROPERTY(QQuickTabBar::Position position READ position NOTIFY positionChanged FINAL)
82
83public:
84 explicit QQuickTabBarAttached(QObject *parent = nullptr);
85
86 int index() const;
87 QQuickTabBar *tabBar() const;
88 QQuickTabBar::Position position() const;
89
91 void indexChanged();
92 void tabBarChanged();
93 void positionChanged();
94
96 Q_DISABLE_COPY(QQuickTabBarAttached)
97 Q_DECLARE_PRIVATE(QQuickTabBarAttached)
98};
99
101
102#endif // QQUICKTABBAR_P_H
\reentrant
Definition qfont.h:22
\inmodule QtCore
Definition qobject.h:103
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
Allows the user to switch between different views or subtasks.
void positionChanged()
\inmodule QtCore\reentrant
Definition qrect.h:484
Combined button and popup list for selecting options.
n void setPosition(void) \n\
GLuint index
[2]
struct _cl_event * event
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit
QGraphicsItem * item