Plasma
tabbar.h
Go to the documentation of this file.
55 Q_PROPERTY(QGraphicsWidget *firstPositionWidget READ firstPositionWidget WRITE setFirstPositionWidget)
56 Q_PROPERTY(QGraphicsWidget *lastPositionWidget READ lastPositionWidget WRITE setLastPositionWidget)
103 Q_INVOKABLE int addTab(const QIcon &icon, const QString &label, QGraphicsLayoutItem *content = 0);
void setLastPositionWidget(QGraphicsWidget *widget)
Set a widget to be displayed on one side of the TabBar, depending on the LayoutDirection and the Shap...
Definition tabbar.cpp:650
Q_INVOKABLE QGraphicsLayoutItem * takeTab(int index)
Removes a tab, the page is reparented to 0 and is returned.
Definition tabbar.cpp:467
void setStyleSheet(const QString &stylesheet)
Sets the stylesheet used to control the visual display of this TabBar.
Definition tabbar.cpp:583
Q_INVOKABLE void setTabIcon(int index, const QIcon &icon)
Sets an icon for a given tab.
Definition tabbar.cpp:549
Q_INVOKABLE void setTabText(int index, const QString &label)
Sets the text label of the given tab.
Definition tabbar.cpp:535
void setTabBarShown(bool show)
shows or hides the tabbar, used if you just want to display the pages, when the tabbar doesn't have c...
Definition tabbar.cpp:559
void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition tabbar.cpp:337
Q_INVOKABLE QGraphicsLayoutItem * tabAt(int index)
Returns the contents of a page.
Definition tabbar.cpp:516
Q_INVOKABLE void setTabHighlighted(int index, bool highlight)
Highlight the specified tab.
Definition tabbar.cpp:593
void setFirstPositionWidget(QGraphicsWidget *widget)
Set a widget to be displayed on one side of the TabBar, depending on the LayoutDirection and the Shap...
Definition tabbar.cpp:620
Q_INVOKABLE int addTab(const QIcon &icon, const QString &label, QGraphicsLayoutItem *content=0)
Adds a new tab in the last position.
Definition tabbar.cpp:322
Q_INVOKABLE bool isTabHighlighted(int index) const
Definition tabbar.cpp:598
Q_INVOKABLE int insertTab(int index, const QIcon &icon, const QString &label, QGraphicsLayoutItem *content=0)
Adds a new tab in the desired position.
Definition tabbar.cpp:275
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.