KUtils
KMultiTabBarButton Class Reference
[KMultiTabBar related classes]
This class represents a tab bar button in a KMultiTabBarWidget.
More...
#include <kmultitabbar.h>
Public Slots | |
void | setPosition (KMultiTabBar::KMultiTabBarPosition) |
void | setStyle (KMultiTabBar::KMultiTabBarStyle) |
void | setText (const QString &) |
QSize | sizeHint () const |
Signals | |
void | clicked (int id) |
Public Member Functions | |
int | id () const |
KMultiTabBarButton (const QString &, QPopupMenu *popup, int id, QWidget *parent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style) | |
KMultiTabBarButton (const QPixmap &pic, const QString &, QPopupMenu *popup, int id, QWidget *parent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style) | |
virtual | ~KMultiTabBarButton () |
Protected Slots | |
virtual void | slotClicked () |
Protected Member Functions | |
virtual void | hideEvent (class QHideEvent *) |
virtual void | showEvent (class QShowEvent *) |
Protected Attributes | |
KMultiTabBar::KMultiTabBarPosition | m_position |
KMultiTabBar::KMultiTabBarStyle | m_style |
QString | m_text |
Detailed Description
This class represents a tab bar button in a KMultiTabBarWidget.This class should never be created except with the appendButton call of KMultiTabBar
Definition at line 205 of file kmultitabbar.h.
Constructor & Destructor Documentation
KMultiTabBarButton::KMultiTabBarButton | ( | const QPixmap & | pic, | |
const QString & | text, | |||
QPopupMenu * | popup, | |||
int | id, | |||
QWidget * | parent, | |||
KMultiTabBar::KMultiTabBarPosition | pos, | |||
KMultiTabBar::KMultiTabBarStyle | style | |||
) |
KMultiTabBarButton::KMultiTabBarButton | ( | const QString & | text, | |
QPopupMenu * | popup, | |||
int | id, | |||
QWidget * | parent, | |||
KMultiTabBar::KMultiTabBarPosition | pos, | |||
KMultiTabBar::KMultiTabBarStyle | style | |||
) |
KMultiTabBarButton::~KMultiTabBarButton | ( | ) | [virtual] |
Member Function Documentation
void KMultiTabBarButton::clicked | ( | int | id | ) | [signal] |
this is emitted if the button is clicked
- Parameters:
-
id the ID identifying the button
void KMultiTabBarButton::hideEvent | ( | class QHideEvent * | he | ) | [protected, virtual] |
Definition at line 446 of file kmultitabbar.cpp.
int KMultiTabBarButton::id | ( | ) | const |
void KMultiTabBarButton::setPosition | ( | KMultiTabBar::KMultiTabBarPosition | pos | ) | [slot] |
this is used internaly, but can be used by the user, if (s)he wants to It the according call of KMultiTabBar is invoked though this modifications will be overwritten
Definition at line 434 of file kmultitabbar.cpp.
void KMultiTabBarButton::setStyle | ( | KMultiTabBar::KMultiTabBarStyle | style | ) | [slot] |
this is used internaly, but can be used by the user, if (s)he wants to It the according call of KMultiTabBar is invoked though this modifications will be overwritten
Definition at line 440 of file kmultitabbar.cpp.
void KMultiTabBarButton::setText | ( | const QString & | text | ) | [slot] |
modify the text of the button
Reimplemented from QPushButton.
Definition at line 422 of file kmultitabbar.cpp.
void KMultiTabBarButton::showEvent | ( | class QShowEvent * | he | ) | [protected, virtual] |
Definition at line 452 of file kmultitabbar.cpp.
QSize KMultiTabBarButton::sizeHint | ( | void | ) | const [slot] |
Definition at line 459 of file kmultitabbar.cpp.
void KMultiTabBarButton::slotClicked | ( | ) | [protected, virtual, slot] |
Member Data Documentation
Definition at line 245 of file kmultitabbar.h.
Definition at line 246 of file kmultitabbar.h.
QString KMultiTabBarButton::m_text [protected] |
Definition at line 247 of file kmultitabbar.h.
The documentation for this class was generated from the following files: