KMultiTabBarButton Class

Use KMultiTabBar::appendButton to append a button, which creates a KMultiTabBarButton instance. More...

Header: #include <KMultiTabBar>
CMake: find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons)
Inherits: QPushButton
Inherited By:

KMultiTabBarTab

Public Functions

int id() const

Public Slots

void setText(const QString &text)

Signals

void clicked(int id)

Protected Functions

KMultiTabBarButton(const QIcon &icon, const QString &, int id, QWidget *parent)

Protected Slots

virtual void slotClicked()

Detailed Description

Member Function Documentation

[protected] KMultiTabBarButton::KMultiTabBarButton(const QIcon &icon, const QString &, int id, QWidget *parent)

Should not be created directly. Use KMultiTabBar::appendButton

[signal] void KMultiTabBarButton::clicked(int id)

this is emitted if the button is clicked

id the ID identifying the button

int KMultiTabBarButton::id() const

[slot] void KMultiTabBarButton::setText(const QString &text)

[virtual protected slot] void KMultiTabBarButton::slotClicked()