![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
#include <combotabbar.h>
Public Types | |
| enum | SizeType { PinnedTabWidth , ActiveTabMinimumWidth , NormalTabMinimumWidth , NormalTabMaximumWidth , OverflowedTabWidth , ExtraReservedWidth } |
| enum | DropIndicatorPosition { BeforeTab , AfterTab } |
Public Slots | |
| void | setUpLayout () |
| void | ensureVisible (int index=-1, int xmargin=-1) |
| void | setCurrentIndex (int index) |
Signals | |
| void | overFlowChanged (bool overFlow) |
| void | currentChanged (int index) |
| void | tabCloseRequested (int index) |
| void | tabMoved (int from, int to) |
| void | scrollBarValueChanged (int value) |
Public Member Functions | |
| ComboTabBar (QWidget *parent=nullptr) | |
| int | addTab (const QString &text) |
| int | addTab (const QIcon &icon, const QString &text) |
| int | insertTab (int index, const QString &text) |
| int | insertTab (int index, const QIcon &icon, const QString &text, bool pinned=false) |
| void | removeTab (int index) |
| void | moveTab (int from, int to) |
| bool | isTabEnabled (int index) const |
| void | setTabEnabled (int index, bool enabled) |
| QColor | tabTextColor (int index) const |
| void | setTabTextColor (int index, const QColor &color) |
| QRect | tabRect (int index) const |
| QRect | draggedTabRect () const |
| QPixmap | tabPixmap (int index) const |
| int | tabAt (const QPoint &pos) const |
| bool | emptyArea (const QPoint &pos) const |
| int | mainTabBarCurrentIndex () const |
| int | currentIndex () const |
| int | count () const |
| void | setDrawBase (bool drawTheBase) |
| bool | drawBase () const |
| Qt::TextElideMode | elideMode () const |
| void | setElideMode (Qt::TextElideMode elide) |
| QString | tabText (int index) const |
| void | setTabText (int index, const QString &text) |
| void | setTabToolTip (int index, const QString &tip) |
| QString | tabToolTip (int index) const |
| bool | tabsClosable () const |
| void | setTabsClosable (bool closable) |
| void | setTabButton (int index, QTabBar::ButtonPosition position, QWidget *widget) |
| QWidget * | tabButton (int index, QTabBar::ButtonPosition position) const |
| QTabBar::SelectionBehavior | selectionBehaviorOnRemove () const |
| void | setSelectionBehaviorOnRemove (QTabBar::SelectionBehavior behavior) |
| bool | expanding () const |
| void | setExpanding (bool enabled) |
| bool | isMovable () const |
| void | setMovable (bool movable) |
| bool | documentMode () const |
| void | setDocumentMode (bool set) |
| int | pinnedTabsCount () const |
| int | normalTabsCount () const |
| bool | isPinned (int index) const |
| void | setFocusPolicy (Qt::FocusPolicy policy) |
| void | setObjectName (const QString &name) |
| void | setMouseTracking (bool enable) |
| void | insertCloseButton (int index) |
| void | setCloseButtonsToolTip (const QString &tip) |
| QTabBar::ButtonPosition | iconButtonPosition () const |
| QTabBar::ButtonPosition | closeButtonPosition () const |
| QSize | iconButtonSize () const |
| QSize | closeButtonSize () const |
| bool | validIndex (int index) const |
| void | setCurrentNextEnabledIndex (int offset) |
| bool | usesScrollButtons () const |
| void | setUsesScrollButtons (bool useButtons) |
| void | showDropIndicator (int index, DropIndicatorPosition position) |
| void | clearDropIndicator () |
| bool | isDragInProgress () const |
| bool | isScrollInProgress () const |
| bool | isMainBarOverflowed () const |
| int | cornerWidth (Qt::Corner corner) const |
| void | addCornerWidget (QWidget *widget, Qt::Corner corner) |
Static Public Member Functions | |
| static int | slideAnimationDuration () |
Protected Member Functions | |
| int | mainTabBarWidth () const |
| int | pinTabBarWidth () const |
| bool | event (QEvent *event) override |
| void | wheelEvent (QWheelEvent *event) override |
| bool | eventFilter (QObject *obj, QEvent *ev) override |
| void | paintEvent (QPaintEvent *ev) override |
| virtual int | comboTabBarPixelMetric (SizeType sizeType) const |
| virtual QSize | tabSizeHint (int index, bool fast=false) const |
| virtual void | tabInserted (int index) |
| virtual void | tabRemoved (int index) |
Properties | |
| int | currentIndex |
| int | count |
Friends | |
| class | TabBarHelper |
| class | TabStackedWidget |
Definition at line 39 of file combotabbar.h.
| Enumerator | |
|---|---|
| BeforeTab | |
| AfterTab | |
Definition at line 55 of file combotabbar.h.
| Enumerator | |
|---|---|
| PinnedTabWidth | |
| ActiveTabMinimumWidth | |
| NormalTabMinimumWidth | |
| NormalTabMaximumWidth | |
| OverflowedTabWidth | |
| ExtraReservedWidth | |
Definition at line 46 of file combotabbar.h.
|
explicit |
Definition at line 46 of file combotabbar.cpp.
| void ComboTabBar::addCornerWidget | ( | QWidget * | widget, |
| Qt::Corner | corner | ||
| ) |
Definition at line 841 of file combotabbar.cpp.
| int ComboTabBar::addTab | ( | const QIcon & | icon, |
| const QString & | text | ||
| ) |
Definition at line 120 of file combotabbar.cpp.
| int ComboTabBar::addTab | ( | const QString & | text | ) |
Definition at line 115 of file combotabbar.cpp.
| void ComboTabBar::clearDropIndicator | ( | ) |
Definition at line 807 of file combotabbar.cpp.
| QTabBar::ButtonPosition ComboTabBar::closeButtonPosition | ( | ) | const |
Definition at line 756 of file combotabbar.cpp.
| QSize ComboTabBar::closeButtonSize | ( | ) | const |
Definition at line 769 of file combotabbar.cpp.
|
protectedvirtual |
Definition at line 727 of file combotabbar.cpp.
| int ComboTabBar::cornerWidth | ( | Qt::Corner | corner | ) | const |
Definition at line 828 of file combotabbar.cpp.
| int ComboTabBar::count | ( | ) | const |
Definition at line 353 of file combotabbar.cpp.
|
signal |
| int ComboTabBar::currentIndex | ( | ) | const |
Definition at line 254 of file combotabbar.cpp.
| bool ComboTabBar::documentMode | ( | ) | const |
Definition at line 475 of file combotabbar.cpp.
| QRect ComboTabBar::draggedTabRect | ( | ) | const |
Definition at line 209 of file combotabbar.cpp.
| bool ComboTabBar::drawBase | ( | ) | const |
Definition at line 364 of file combotabbar.cpp.
| Qt::TextElideMode ComboTabBar::elideMode | ( | ) | const |
Definition at line 369 of file combotabbar.cpp.
| bool ComboTabBar::emptyArea | ( | const QPoint & | pos | ) | const |
Definition at line 241 of file combotabbar.cpp.
|
slot |
Definition at line 861 of file combotabbar.cpp.
|
overrideprotected |
Definition at line 583 of file combotabbar.cpp.
|
overrideprotected |
Definition at line 661 of file combotabbar.cpp.
| bool ComboTabBar::expanding | ( | ) | const |
Definition at line 453 of file combotabbar.cpp.
| QTabBar::ButtonPosition ComboTabBar::iconButtonPosition | ( | ) | const |
Definition at line 751 of file combotabbar.cpp.
| QSize ComboTabBar::iconButtonSize | ( | ) | const |
Definition at line 761 of file combotabbar.cpp.
| void ComboTabBar::insertCloseButton | ( | int | index | ) |
Definition at line 554 of file combotabbar.cpp.
| int ComboTabBar::insertTab | ( | int | index, |
| const QIcon & | icon, | ||
| const QString & | text, | ||
| bool | pinned = false |
||
| ) |
Definition at line 130 of file combotabbar.cpp.
| int ComboTabBar::insertTab | ( | int | index, |
| const QString & | text | ||
| ) |
Definition at line 125 of file combotabbar.cpp.
| bool ComboTabBar::isDragInProgress | ( | ) | const |
Definition at line 813 of file combotabbar.cpp.
| bool ComboTabBar::isMainBarOverflowed | ( | ) | const |
Definition at line 823 of file combotabbar.cpp.
| bool ComboTabBar::isMovable | ( | ) | const |
Definition at line 464 of file combotabbar.cpp.
| bool ComboTabBar::isPinned | ( | int | index | ) | const |
Definition at line 496 of file combotabbar.cpp.
| bool ComboTabBar::isScrollInProgress | ( | ) | const |
Definition at line 818 of file combotabbar.cpp.
| bool ComboTabBar::isTabEnabled | ( | int | index | ) | const |
Definition at line 184 of file combotabbar.cpp.
| int ComboTabBar::mainTabBarCurrentIndex | ( | ) | const |
Definition at line 249 of file combotabbar.cpp.
|
protected |
Definition at line 573 of file combotabbar.cpp.
| void ComboTabBar::moveTab | ( | int | from, |
| int | to | ||
| ) |
Definition at line 174 of file combotabbar.cpp.
| int ComboTabBar::normalTabsCount | ( | ) | const |
Definition at line 491 of file combotabbar.cpp.
|
signal |
|
overrideprotected |
Definition at line 679 of file combotabbar.cpp.
| int ComboTabBar::pinnedTabsCount | ( | ) | const |
Definition at line 486 of file combotabbar.cpp.
|
protected |
Definition at line 578 of file combotabbar.cpp.
| void ComboTabBar::removeTab | ( | int | index | ) |
Definition at line 159 of file combotabbar.cpp.
|
signal |
| QTabBar::SelectionBehavior ComboTabBar::selectionBehaviorOnRemove | ( | ) | const |
Definition at line 442 of file combotabbar.cpp.
| void ComboTabBar::setCloseButtonsToolTip | ( | const QString & | tip | ) |
Definition at line 568 of file combotabbar.cpp.
|
slot |
Definition at line 264 of file combotabbar.cpp.
| void ComboTabBar::setCurrentNextEnabledIndex | ( | int | offset | ) |
Definition at line 781 of file combotabbar.cpp.
| void ComboTabBar::setDocumentMode | ( | bool | set | ) |
Definition at line 480 of file combotabbar.cpp.
| void ComboTabBar::setDrawBase | ( | bool | drawTheBase | ) |
Definition at line 358 of file combotabbar.cpp.
| void ComboTabBar::setElideMode | ( | Qt::TextElideMode | elide | ) |
Definition at line 374 of file combotabbar.cpp.
| void ComboTabBar::setExpanding | ( | bool | enabled | ) |
Definition at line 458 of file combotabbar.cpp.
| void ComboTabBar::setFocusPolicy | ( | Qt::FocusPolicy | policy | ) |
Definition at line 501 of file combotabbar.cpp.
| void ComboTabBar::setMouseTracking | ( | bool | enable | ) |
Definition at line 514 of file combotabbar.cpp.
| void ComboTabBar::setMovable | ( | bool | movable | ) |
Definition at line 469 of file combotabbar.cpp.
| void ComboTabBar::setObjectName | ( | const QString & | name | ) |
Definition at line 508 of file combotabbar.cpp.
| void ComboTabBar::setSelectionBehaviorOnRemove | ( | QTabBar::SelectionBehavior | behavior | ) |
Definition at line 447 of file combotabbar.cpp.
| void ComboTabBar::setTabButton | ( | int | index, |
| QTabBar::ButtonPosition | position, | ||
| QWidget * | widget | ||
| ) |
Definition at line 430 of file combotabbar.cpp.
| void ComboTabBar::setTabEnabled | ( | int | index, |
| bool | enabled | ||
| ) |
Definition at line 189 of file combotabbar.cpp.
| void ComboTabBar::setTabsClosable | ( | bool | closable | ) |
Definition at line 405 of file combotabbar.cpp.
| void ComboTabBar::setTabText | ( | int | index, |
| const QString & | text | ||
| ) |
Definition at line 385 of file combotabbar.cpp.
| void ComboTabBar::setTabTextColor | ( | int | index, |
| const QColor & | color | ||
| ) |
Definition at line 199 of file combotabbar.cpp.
| void ComboTabBar::setTabToolTip | ( | int | index, |
| const QString & | tip | ||
| ) |
Definition at line 390 of file combotabbar.cpp.
|
slot |
Definition at line 527 of file combotabbar.cpp.
| void ComboTabBar::setUsesScrollButtons | ( | bool | useButtons | ) |
Definition at line 796 of file combotabbar.cpp.
| void ComboTabBar::showDropIndicator | ( | int | index, |
| DropIndicatorPosition | position | ||
| ) |
Definition at line 801 of file combotabbar.cpp.
|
static |
Definition at line 855 of file combotabbar.cpp.
| int ComboTabBar::tabAt | ( | const QPoint & | pos | ) | const |
Definition at line 223 of file combotabbar.cpp.
| QWidget * ComboTabBar::tabButton | ( | int | index, |
| QTabBar::ButtonPosition | position | ||
| ) | const |
Definition at line 437 of file combotabbar.cpp.
|
signal |
|
protectedvirtual |
Definition at line 889 of file combotabbar.cpp.
|
signal |
| QPixmap ComboTabBar::tabPixmap | ( | int | index | ) | const |
Definition at line 218 of file combotabbar.cpp.
| QRect ComboTabBar::tabRect | ( | int | index | ) | const |
Definition at line 204 of file combotabbar.cpp.
|
protectedvirtual |
Definition at line 894 of file combotabbar.cpp.
| bool ComboTabBar::tabsClosable | ( | ) | const |
Definition at line 400 of file combotabbar.cpp.
|
protectedvirtual |
Definition at line 882 of file combotabbar.cpp.
| QString ComboTabBar::tabText | ( | int | index | ) | const |
Definition at line 380 of file combotabbar.cpp.
| QColor ComboTabBar::tabTextColor | ( | int | index | ) | const |
Definition at line 194 of file combotabbar.cpp.
| QString ComboTabBar::tabToolTip | ( | int | index | ) | const |
Definition at line 395 of file combotabbar.cpp.
| bool ComboTabBar::usesScrollButtons | ( | ) | const |
Definition at line 791 of file combotabbar.cpp.
| bool ComboTabBar::validIndex | ( | int | index | ) | const |
Definition at line 776 of file combotabbar.cpp.
|
overrideprotected |
Definition at line 618 of file combotabbar.cpp.
|
friend |
Definition at line 223 of file combotabbar.h.
|
friend |
Definition at line 224 of file combotabbar.h.
|
read |
Definition at line 311 of file combotabbar.h.
|
readwrite |
Definition at line 311 of file combotabbar.h.