47 Q_PROPERTY(QQuickItem *tabBarQmlItem READ tabBarQmlItem WRITE setTabBarQmlItem NOTIFY
49 Q_PROPERTY(
bool tabBarAutoHide READ tabBarAutoHide NOTIFY tabBarAutoHideChanged)
51 Q_PROPERTY(
int hoveredTabIndex READ hoveredTabIndex NOTIFY hoveredTabIndexChanged)
53 explicit
TabBar(Core::
TabBar *controller, QQuickItem *parent =
nullptr);
58 int tabAt(
QPoint localPos) const override;
59 QQuickItem *tabBarQmlItem() const;
60 void setTabBarQmlItem(QQuickItem *);
62 QString text(
int index) const override;
63 QRect rectForTab(
int index) const override;
64 QRect globalRectForTab(
int index) const;
65 int indexForTabPos(
QPoint) const;
67 void moveTabTo(
int from,
int to) override;
68 Q_INVOKABLE
void setCurrentIndex(
int index) override;
73 Q_INVOKABLE
bool closeAtIndex(
int index);
75 Stack *stackView() const;
76 void renameTab(
int index, const
QString &) override;
77 void changeTabIcon(
int index, const
QIcon &icon) override;
80 bool tabBarAutoHide() const;
82 void removeDockWidget(Core::
DockWidget *) override;
88 int hoveredTabIndex() const;
90 Q_INVOKABLE
void addDockWidgetAsTab(QQuickItem *other,
102 bool event(
QEvent *ev)
override;
103 void init() override final;
107 QQuickItem *tabAt(
int index) const;
108 void setHoveredTabIndex(
int);