Applets
Kickoff::TabBar Class Reference
#include <tabbar.h>

Public Member Functions | |
bool | animateSwitch () |
void | setAnimateSwitch (bool animateSwitch) |
void | setCurrentIndexWithoutAnimation (int index) |
void | setShape (Shape shape) |
void | setSwitchTabsOnHover (bool switchOnHover) |
QSize | sizeHint () const |
bool | switchTabsOnHover () const |
TabBar (QWidget *parent) | |
Protected Slots | |
void | animationFinished () |
void | onValueChanged (qreal val) |
void | startAnimation () |
void | switchToHoveredTab () |
Protected Member Functions | |
bool | isHorizontal () const |
bool | isVertical () const |
int | lastIndex () const |
virtual void | leaveEvent (QEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual QSize | tabSizeHint (int index) const |
Detailed Description
Definition at line 34 of file tabbar.h.
Constructor & Destructor Documentation
TabBar::TabBar | ( | QWidget * | parent | ) |
Definition at line 42 of file tabbar.cpp.
Member Function Documentation
bool TabBar::animateSwitch | ( | ) |
Definition at line 104 of file tabbar.cpp.
void TabBar::animationFinished | ( | ) | [protected, slot] |
Definition at line 391 of file tabbar.cpp.
bool TabBar::isHorizontal | ( | ) | const [protected] |
Definition at line 409 of file tabbar.cpp.
bool TabBar::isVertical | ( | ) | const [protected] |
Definition at line 397 of file tabbar.cpp.
int TabBar::lastIndex | ( | ) | const [protected] |
Definition at line 131 of file tabbar.cpp.
void TabBar::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
Definition at line 329 of file tabbar.cpp.
void TabBar::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 335 of file tabbar.cpp.
void TabBar::onValueChanged | ( | qreal | val | ) | [protected, slot] |
Definition at line 374 of file tabbar.cpp.
void TabBar::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 274 of file tabbar.cpp.
void TabBar::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 344 of file tabbar.cpp.
void TabBar::setAnimateSwitch | ( | bool | animateSwitch | ) |
Definition at line 99 of file tabbar.cpp.
void TabBar::setCurrentIndexWithoutAnimation | ( | int | index | ) |
Like the setCurrentIndex() method but switches the tab without using any animation.
This is used e.g. within Launcher::reset() to switch back to the favorite tab before Kickoff got shown.
Definition at line 80 of file tabbar.cpp.
void TabBar::setShape | ( | Shape | shape | ) |
Definition at line 71 of file tabbar.cpp.
void TabBar::setSwitchTabsOnHover | ( | bool | switchOnHover | ) |
Specifies whether hovering switches between tabs or if a click is required to switch the tabs.
Definition at line 89 of file tabbar.cpp.
QSize TabBar::sizeHint | ( | ) | const |
Definition at line 175 of file tabbar.cpp.
void TabBar::startAnimation | ( | ) | [protected, slot] |
Definition at line 367 of file tabbar.cpp.
bool TabBar::switchTabsOnHover | ( | ) | const |
Definition at line 94 of file tabbar.cpp.
void TabBar::switchToHoveredTab | ( | ) | [protected, slot] |
Definition at line 354 of file tabbar.cpp.
QSize TabBar::tabSizeHint | ( | int | index | ) | const [protected, virtual] |
Definition at line 136 of file tabbar.cpp.
The documentation for this class was generated from the following files: