|
QtCanpool 3.3.0
|
Side tab bar widget that is shown at the edges of a dock container. 更多...
#include <qxdock/docksidebar.h>

Public 成员函数 | |
| DockSideBar (DockContainer *parent, Qx::DockSideBarArea area) | |
| virtual | ~DockSideBar () |
| void | removeTab (DockSideTab *sideTab) |
| DockAutoHideContainer * | insertDockWidget (int index, DockWidget *w) |
| Insert dock widget into the side bar. | |
| void | addAutoHideWidget (DockAutoHideContainer *autoHideWidget, int index=Qx::DockTabDefaultInsertIndex) |
| Adds the given autoHideWidget to this sidebar. | |
| void | removeAutoHideWidget (DockAutoHideContainer *autoHideWidget) |
| Qt::Orientation | orientation () const |
| DockSideTab * | tab (int index) const |
| int | tabAt (const QPoint &pos) const |
| Returns the tab at the given position. | |
| int | tabInsertIndexAt (const QPoint &pos) const |
| int | indexOfTab (const DockSideTab &tab) const |
| int | count () const |
| int | visibleTabCount () const |
| bool | hasVisibleTabs () const |
| Returns true, if the sidebar contains visible tabs to its parent widget. | |
| Qx::DockSideBarArea | sideBarArea () const |
| virtual QSize | minimumSizeHint () const override |
| Overrides the minimumSizeHint() function of QScrollArea The minimumSizeHint() is bigger than the sizeHint () for the scroll area because even if the scrollbars are invisible, the required space is reserved in the minimumSizeHint(). | |
| virtual QSize | sizeHint () const override |
| int | spacing () const |
| void | setSpacing (int spacing) |
Protected 成员函数 | |
| void | insertTab (int index, DockSideTab *sideTab) |
| void | saveState (QXmlStreamWriter &s) const |
| virtual bool | eventFilter (QObject *watched, QEvent *event) override |
友元 | |
| class | DockContainerPrivate |
Side tab bar widget that is shown at the edges of a dock container.
The tab bar is only visible, if it contains visible content, that means if it contains visible tabs. If it is empty or all tabs are hidden, then the side bar is also hidden. As soon as one single tab becomes visible, this tab bar will be shown. The DockSideBar uses a QScrollArea here, to enable proper resizing. If the side bar contains many tabs, then the tabs are simply clipped - this is the same like in visual studio
在文件 docksidebar.h 第 31 行定义.
|
explicit |
在文件 docksidebar.cpp 第 97 行定义.
|
virtual |
在文件 docksidebar.cpp 第 124 行定义.
| void QxDock::DockSideBar::addAutoHideWidget | ( | DockAutoHideContainer * | autoHideWidget, |
| int | index = Qx::DockTabDefaultInsertIndex |
||
| ) |
Adds the given autoHideWidget to this sidebar.
If the autoHideWidget is in another sidebar, then it will be removed from this sidebar.
在文件 docksidebar.cpp 第 169 行定义.
| int QxDock::DockSideBar::count | ( | ) | const |
在文件 docksidebar.cpp 第 270 行定义.
|
overrideprotectedvirtual |
在文件 docksidebar.cpp 第 385 行定义.
| bool QxDock::DockSideBar::hasVisibleTabs | ( | ) | const |
Returns true, if the sidebar contains visible tabs to its parent widget.
The function returns as soon as it finds the first visible tab. That means, if you just want to find out if there are visible tabs then this function is quicker than visibleTabCount()
在文件 docksidebar.cpp 第 295 行定义.
| int QxDock::DockSideBar::indexOfTab | ( | const DockSideTab & | tab | ) | const |
在文件 docksidebar.cpp 第 259 行定义.
| DockAutoHideContainer * QxDock::DockSideBar::insertDockWidget | ( | int | index, |
| DockWidget * | w | ||
| ) |
Insert dock widget into the side bar.
The function creates the auto hide dock container, inserts the auto hide tab
在文件 docksidebar.cpp 第 148 行定义.
|
protected |
在文件 docksidebar.cpp 第 350 行定义.
|
overridevirtual |
Overrides the minimumSizeHint() function of QScrollArea The minimumSizeHint() is bigger than the sizeHint () for the scroll area because even if the scrollbars are invisible, the required space is reserved in the minimumSizeHint().
This override simply returns sizeHint();
在文件 docksidebar.cpp 第 320 行定义.
| Qt::Orientation QxDock::DockSideBar::orientation | ( | ) | const |
在文件 docksidebar.cpp 第 206 行定义.
| void QxDock::DockSideBar::removeAutoHideWidget | ( | DockAutoHideContainer * | autoHideWidget | ) |
在文件 docksidebar.cpp 第 196 行定义.
| void QxDock::DockSideBar::removeTab | ( | DockSideTab * | sideTab | ) |
在文件 docksidebar.cpp 第 133 行定义.
|
protected |
在文件 docksidebar.cpp 第 364 行定义.
| void QxDock::DockSideBar::setSpacing | ( | int | spacing | ) |
在文件 docksidebar.cpp 第 344 行定义.
| Qx::DockSideBarArea QxDock::DockSideBar::sideBarArea | ( | ) | const |
在文件 docksidebar.cpp 第 307 行定义.
|
overridevirtual |
在文件 docksidebar.cpp 第 332 行定义.
| int QxDock::DockSideBar::spacing | ( | ) | const |
在文件 docksidebar.cpp 第 338 行定义.
| DockSideTab * QxDock::DockSideBar::tab | ( | int | index | ) | const |
在文件 docksidebar.cpp 第 212 行定义.
| int QxDock::DockSideBar::tabAt | ( | const QPoint & | pos | ) | const |
Returns the tab at the given position.
Returns -1 if the position is left of the first tab and count() if the position is right of the last tab. Returns Qx::DockTabInvalidIndex (-2) to indicate an invalid value.
在文件 docksidebar.cpp 第 224 行定义.
| int QxDock::DockSideBar::tabInsertIndexAt | ( | const QPoint & | pos | ) | const |
在文件 docksidebar.cpp 第 249 行定义.
| int QxDock::DockSideBar::visibleTabCount | ( | ) | const |
在文件 docksidebar.cpp 第 276 行定义.
|
friend |
在文件 docksidebar.h 第 73 行定义.