KUtils
KMultiTabBarTab Class Reference
[KMultiTabBar related classes]
This class represents a tab bar's tab in a KMultiTabBarWidget.
More...
#include <kmultitabbar.h>
Public Slots | |
virtual void | setIcon (const QPixmap &) |
virtual void | setIcon (const QString &) |
Public Member Functions | |
KMultiTabBarTab (const QPixmap &pic, const QString &, int id, QWidget *parent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style) | |
void | resize () |
void | setState (bool state) |
void | showActiveTabText (bool show) |
virtual | ~KMultiTabBarTab () |
Protected Slots | |
void | setTabsPosition (KMultiTabBar::KMultiTabBarPosition) |
virtual void | slotClicked () |
Protected Member Functions | |
virtual void | drawButton (QPainter *) |
void | drawButtonClassic (QPainter *) |
virtual void | drawButtonLabel (QPainter *) |
void | drawButtonStyled (QPainter *) |
int | neededSize () |
void | setSize (int) |
void | updateState () |
Detailed Description
This class represents a tab bar's tab in a KMultiTabBarWidget.This class should never be created except with the appendTab call of KMultiTabBar
Definition at line 268 of file kmultitabbar.h.
Constructor & Destructor Documentation
KMultiTabBarTab::KMultiTabBarTab | ( | const QPixmap & | pic, | |
const QString & | text, | |||
int | id, | |||
QWidget * | parent, | |||
KMultiTabBar::KMultiTabBarPosition | pos, | |||
KMultiTabBar::KMultiTabBarStyle | style | |||
) |
KMultiTabBarTab::~KMultiTabBarTab | ( | ) | [virtual] |
Member Function Documentation
void KMultiTabBarTab::drawButton | ( | QPainter * | paint | ) | [protected, virtual] |
Definition at line 623 of file kmultitabbar.cpp.
void KMultiTabBarTab::drawButtonClassic | ( | QPainter * | paint | ) | [protected] |
Definition at line 676 of file kmultitabbar.cpp.
void KMultiTabBarTab::drawButtonLabel | ( | QPainter * | p | ) | [protected, virtual] |
Definition at line 620 of file kmultitabbar.cpp.
void KMultiTabBarTab::drawButtonStyled | ( | QPainter * | paint | ) | [protected] |
int KMultiTabBarTab::neededSize | ( | ) | [protected] |
Definition at line 604 of file kmultitabbar.cpp.
void KMultiTabBarTab::resize | ( | ) | [inline] |
void KMultiTabBarTab::setIcon | ( | const QPixmap & | icon | ) | [virtual, slot] |
Definition at line 537 of file kmultitabbar.cpp.
void KMultiTabBarTab::setIcon | ( | const QString & | icon | ) | [virtual, slot] |
Definition at line 531 of file kmultitabbar.cpp.
void KMultiTabBarTab::setSize | ( | int | size | ) | [protected] |
Definition at line 609 of file kmultitabbar.cpp.
void KMultiTabBarTab::setState | ( | bool | state | ) |
set the active state of the tab
- Parameters:
-
state true
if the tab should become active,false
otherwise
Definition at line 560 of file kmultitabbar.cpp.
void KMultiTabBarTab::setTabsPosition | ( | KMultiTabBar::KMultiTabBarPosition | pos | ) | [protected, slot] |
Definition at line 516 of file kmultitabbar.cpp.
void KMultiTabBarTab::showActiveTabText | ( | bool | show | ) |
choose if the text should always be displayed this is only used in classic mode if at all
- Parameters:
-
show Whether or not to show the text
Definition at line 615 of file kmultitabbar.cpp.
void KMultiTabBarTab::slotClicked | ( | ) | [protected, virtual, slot] |
void KMultiTabBarTab::updateState | ( | ) | [protected] |
Definition at line 566 of file kmultitabbar.cpp.
The documentation for this class was generated from the following files: