liblancelot
#include <TabBar.h>
Public Slots | |
void | setCurrentTab (const QString ¤t) |
Signals | |
void | currentTabChanged (const QString ¤t) |
Public Member Functions | |
TabBar (QGraphicsWidget *parent=0) | |
~TabBar () | |
void | addTab (const QString &id, const QIcon &icon, const QString &title, const QString &mimeType=QString::null, const QString &mimeData=QString::null) |
QString | currentTab () const |
Plasma::Flip | flip () const |
Qt::Orientation | orientation () const |
void | removeTab (const QString &id) |
void | setFlip (Plasma::Flip flip) |
void | setOrientation (Qt::Orientation value) |
void | setTabIconSize (const QSize &size) |
void | setTabsGroupName (const QString &groupName) |
void | setTextDirection (Qt::Orientation value) |
QSize | tabIconSize () const |
Qt::Orientation | textDirection () const |
Protected Member Functions | |
L_Override void | resizeEvent (QGraphicsSceneResizeEvent *event) |
L_Override bool | sceneEventFilter (QGraphicsItem *watched, QEvent *event) |
Properties | |
QString | currentTab |
Qt::Orientation | orientation |
QSize | tabIconSize |
Qt::Orientation | textDirection |
Detailed Description
Provides a group of buttons representing tabs.
Can be used for controlling the CardLayout
Constructor & Destructor Documentation
Lancelot::TabBar::TabBar | ( | QGraphicsWidget * | parent = 0 | ) |
Creates a new Lancelot::TabBar.
- Parameters
-
parent parent item
Definition at line 149 of file TabBar.cpp.
Lancelot::TabBar::~TabBar | ( | ) |
Destroys this Lancelot::TabBar.
Definition at line 156 of file TabBar.cpp.
Member Function Documentation
void Lancelot::TabBar::addTab | ( | const QString & | id, |
const QIcon & | icon, | ||
const QString & | title, | ||
const QString & | mimeType = QString::null , |
||
const QString & | mimeData = QString::null |
||
) |
Adds a new tab.
- Parameters
-
id id of the tab icon icon for the tab title tab title
Definition at line 215 of file TabBar.cpp.
QString Lancelot::TabBar::currentTab | ( | ) | const |
- Returns
- the active tab
|
signal |
This signal is emitted when the currently selected tab is changed.
Plasma::Flip Lancelot::TabBar::flip | ( | ) | const |
- Returns
- the current layout flip
Definition at line 289 of file TabBar.cpp.
Qt::Orientation Lancelot::TabBar::orientation | ( | ) | const |
- Returns
- the tab bar orientation
void Lancelot::TabBar::removeTab | ( | const QString & | id | ) |
Removes the specified tab.
- Parameters
-
id id of the tab to remove
Definition at line 245 of file TabBar.cpp.
|
protected |
Definition at line 277 of file TabBar.cpp.
|
protected |
Definition at line 308 of file TabBar.cpp.
|
slot |
Sets the current tab.
Definition at line 189 of file TabBar.cpp.
void Lancelot::TabBar::setFlip | ( | Plasma::Flip | flip | ) |
void Lancelot::TabBar::setOrientation | ( | Qt::Orientation | value | ) |
Sets the tab bar orientation.
- Parameters
-
value new orientation
Definition at line 167 of file TabBar.cpp.
void Lancelot::TabBar::setTabIconSize | ( | const QSize & | size | ) |
Sets the icon size for tab buttons.
- Parameters
-
size new size
Definition at line 295 of file TabBar.cpp.
void Lancelot::TabBar::setTabsGroupName | ( | const QString & | groupName | ) |
Sets the Lancelot::Group for the tab buttons.
- Parameters
-
groupName name of the specific Lancelot::Group
Definition at line 260 of file TabBar.cpp.
void Lancelot::TabBar::setTextDirection | ( | Qt::Orientation | value | ) |
Sets the inner layout of tab buttons - that is whether the icon is above or beside the text.
Definition at line 178 of file TabBar.cpp.
QSize Lancelot::TabBar::tabIconSize | ( | ) | const |
- Returns
- the current icon size of tab buttons
Qt::Orientation Lancelot::TabBar::textDirection | ( | ) | const |
- Returns
- the inner layout of buttons
- See also
- setTextDirection
Property Documentation
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.