QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxDock::DockAutoHideContainer类 参考

Auto hide container for hosting an auto hide dock widget 更多...

#include <qxdock/dockautohidecontainer.h>

类 QxDock::DockAutoHideContainer 继承关系图:

Public 类型

using Super = QFrame
 

Public 成员函数

 DockAutoHideContainer (DockWidget *w, Qx::DockSideBarArea area, DockContainer *parent)
 
virtual ~DockAutoHideContainer ()
 
DockSideBar * autoHideSideBar () const
 
DockSideTab * autoHideTab () const
 
int tabIndex () const
 Returns the index of this container in the sidebar
 
DockWidget * dockWidget () const
 
void addDockWidget (DockWidget *w)
 
DockContainer * dockContainer () const
 
Qx::DockSideBarArea sideBarArea () const
 
void cleanupAndDelete ()
 Cleanups up the side tab widget and then deletes itself
 
void moveContentsToParent ()
 Moves the contents to the parent container widget Used before removing this Auto Hide dock container
 
void moveToNewSideBarArea (Qx::DockSideBarArea area, int tabIndex=-1)
 Removes the AutoHide container from the current side bar and adds it to the new side bar given in area
 
void toggleView (bool enable)
 
void collapseView (bool enable)
 
void toggleCollapseState ()
 Toggles the current collapse state
 
void setSize (int size)
 Use this instead of resize.
 
void resetToInitialDockWidgetSize ()
 Resets the width or height to the initial dock widget size dependinng on the orientation.
 
Qt::Orientation orientation () const
 Returns orientation of this container.
 

Protected 成员函数

virtual bool eventFilter (QObject *watched, QEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 
virtual void leaveEvent (QEvent *event) override
 
virtual bool event (QEvent *event) override
 
void updateSize ()
 Updates the size considering the size limits and the resize margins
 
void saveState (QXmlStreamWriter &s) const
 

友元

class DockSideBar
 

详细描述

Auto hide container for hosting an auto hide dock widget

在文件 dockautohidecontainer.h 第 24 行定义.

成员类型定义说明

◆ Super

在文件 dockautohidecontainer.h 第 29 行定义.

构造及析构函数说明

◆ DockAutoHideContainer()

QxDock::DockAutoHideContainer::DockAutoHideContainer ( DockWidget *  w,
Qx::DockSideBarArea  area,
DockContainer *  parent 
)

在文件 dockautohidecontainer.cpp 第 176 行定义.

◆ ~DockAutoHideContainer()

QxDock::DockAutoHideContainer::~DockAutoHideContainer ( )
virtual

在文件 dockautohidecontainer.cpp 第 215 行定义.

成员函数说明

◆ addDockWidget()

void QxDock::DockAutoHideContainer::addDockWidget ( DockWidget *  w)

在文件 dockautohidecontainer.cpp 第 262 行定义.

◆ autoHideSideBar()

DockSideBar * QxDock::DockAutoHideContainer::autoHideSideBar ( ) const

在文件 dockautohidecontainer.cpp 第 230 行定义.

◆ autoHideTab()

DockSideTab * QxDock::DockAutoHideContainer::autoHideTab ( ) const

在文件 dockautohidecontainer.cpp 第 241 行定义.

◆ cleanupAndDelete()

void QxDock::DockAutoHideContainer::cleanupAndDelete ( )

Cleanups up the side tab widget and then deletes itself

在文件 dockautohidecontainer.cpp 第 323 行定义.

◆ collapseView()

void QxDock::DockAutoHideContainer::collapseView ( bool  enable)

在文件 dockautohidecontainer.cpp 第 399 行定义.

◆ dockContainer()

DockContainer * QxDock::DockAutoHideContainer::dockContainer ( ) const

在文件 dockautohidecontainer.cpp 第 289 行定义.

◆ dockWidget()

DockWidget * QxDock::DockAutoHideContainer::dockWidget ( ) const

在文件 dockautohidecontainer.cpp 第 256 行定义.

◆ event()

bool QxDock::DockAutoHideContainer::event ( QEvent *  event)
overrideprotectedvirtual

在文件 dockautohidecontainer.cpp 第 548 行定义.

◆ eventFilter()

bool QxDock::DockAutoHideContainer::eventFilter ( QObject *  watched,
QEvent *  event 
)
overrideprotectedvirtual

在文件 dockautohidecontainer.cpp 第 472 行定义.

◆ leaveEvent()

void QxDock::DockAutoHideContainer::leaveEvent ( QEvent *  event)
overrideprotectedvirtual

在文件 dockautohidecontainer.cpp 第 535 行定义.

◆ moveContentsToParent()

void QxDock::DockAutoHideContainer::moveContentsToParent ( )

Moves the contents to the parent container widget Used before removing this Auto Hide dock container

在文件 dockautohidecontainer.cpp 第 342 行定义.

◆ moveToNewSideBarArea()

void QxDock::DockAutoHideContainer::moveToNewSideBarArea ( Qx::DockSideBarArea  area,
int  tabIndex = -1 
)

Removes the AutoHide container from the current side bar and adds it to the new side bar given in area

在文件 dockautohidecontainer.cpp 第 358 行定义.

◆ orientation()

Qt::Orientation QxDock::DockAutoHideContainer::orientation ( ) const

Returns orientation of this container.

Left and right containers have a Qt::Vertical orientation and top / bottom containers have a Qt::Horizontal orientation. The function returns the orientation of the corresponding auto hide side bar.

在文件 dockautohidecontainer.cpp 第 466 行定义.

◆ resetToInitialDockWidgetSize()

void QxDock::DockAutoHideContainer::resetToInitialDockWidgetSize ( )

Resets the width or height to the initial dock widget size dependinng on the orientation.

If the orientation is Qt::Horizontal, then the height is reset to the initial size and if orientation is Qt::Vertical, then the width is reset to the initial size

在文件 dockautohidecontainer.cpp 第 449 行定义.

◆ resizeEvent()

void QxDock::DockAutoHideContainer::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

在文件 dockautohidecontainer.cpp 第 525 行定义.

◆ saveState()

void QxDock::DockAutoHideContainer::saveState ( QXmlStreamWriter &  s) const
protected

在文件 dockautohidecontainer.cpp 第 616 行定义.

◆ setSize()

void QxDock::DockAutoHideContainer::setSize ( int  size)

Use this instead of resize.

Depending on the sidebar area this will set the width or height of this auto hide container.

在文件 dockautohidecontainer.cpp 第 430 行定义.

◆ sideBarArea()

Qx::DockSideBarArea QxDock::DockAutoHideContainer::sideBarArea ( ) const

在文件 dockautohidecontainer.cpp 第 294 行定义.

◆ tabIndex()

int QxDock::DockAutoHideContainer::tabIndex ( ) const

Returns the index of this container in the sidebar

在文件 dockautohidecontainer.cpp 第 250 行定义.

◆ toggleCollapseState()

void QxDock::DockAutoHideContainer::toggleCollapseState ( )

Toggles the current collapse state

在文件 dockautohidecontainer.cpp 第 420 行定义.

◆ toggleView()

void QxDock::DockAutoHideContainer::toggleView ( bool  enable)

在文件 dockautohidecontainer.cpp 第 379 行定义.

◆ updateSize()

void QxDock::DockAutoHideContainer::updateSize ( )
protected

Updates the size considering the size limits and the resize margins

在文件 dockautohidecontainer.cpp 第 571 行定义.

友元及相关函数文档

◆ DockSideBar

friend class DockSideBar
friend

在文件 dockautohidecontainer.h 第 69 行定义.


该类的文档由以下文件生成: