QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxDock::internal 命名空间参考

类

class  DockInsertParam
 

枚举

enum  RepolishChildOptions { RepolishIgnoreChildren , RepolishDirectChildren , RepolishChildrenRecursively }
 

函数

QPixmap createTransparentPixmap (const QPixmap &source, qreal opacity)
 Creates a semi transparent pixmap from the given pixmap Source.
 
void setButtonIcon (QAbstractButton *b, QStyle::StandardPixmap pixmap, Qx::DockIcon iconId)
 Helper function to set the icon of a certain button.
 
DockInsertParam dockAreaInsertParameters (Qx::DockWidgetArea area)
 
void repolishStyle (QWidget *w, RepolishChildOptions options)
 Calls unpolish() / polish for the style of the given widget to update stylesheet if a property changes
 
void hideEmptyParentSplitters (DockSplitter *splitter)
 This function walks the splitter tree upwards to hides all splitters that do not have visible content
 
void replaceSplitterWidget (QSplitter *splitter, QWidget *from, QWidget *to)
 Replace the from widget in the given splitter with the To widget
 
bool isHorizontalSideBarArea (Qx::DockSideBarArea area)
 
bool isSideBarArea (Qx::DockWidgetArea area)
 
Qx::DockSideBarArea toSideBarArea (Qx::DockWidgetArea area)
 
template<class T >
void setFlag (T &flags, typename T::enum_type flag, bool on=true)
 
template<class QObjectPtr >
void setToolTip (QObjectPtr obj, const QString &tip)
 
template<class T >
T findParent (const QWidget *w)
 Searches for the parent widget of the given type.
 
QPoint globalPositionOf (QMouseEvent *e)
 

变量

const int FloatingWidgetDragStartEvent = QEvent::registerEventType()
 
const int DockedWidgetDragStartEvent = QEvent::registerEventType()
 

枚举类型说明

◆ RepolishChildOptions

枚举值
RepolishIgnoreChildren 
RepolishDirectChildren 
RepolishChildrenRecursively 

在文件 dockutils.h 第 129 行定义.

函数说明

◆ createTransparentPixmap()

QPixmap QxDock::internal::createTransparentPixmap ( const QPixmap &  source,
qreal  opacity 
)

Creates a semi transparent pixmap from the given pixmap Source.

The Opacity parameter defines the opacity from completely transparent (0.0) to completely opaque (1.0)

在文件 dockutils.cpp 第 41 行定义.

◆ dockAreaInsertParameters()

DockInsertParam QxDock::internal::dockAreaInsertParameters ( Qx::DockWidgetArea  area)

在文件 dockutils.cpp 第 85 行定义.

◆ findParent()

template<class T >
T QxDock::internal::findParent ( const QWidget *  w)

Searches for the parent widget of the given type.

Returns the parent widget of the given widget or 0 if the widget is not child of any widget of type T

It is not safe to use this function in in DockWidget because only the current dock widget has a parent. All dock widgets that are not the current dock widget in a dock panel have no parent.

在文件 dockutils.h 第 75 行定义.

◆ globalPositionOf()

QPoint QxDock::internal::globalPositionOf ( QMouseEvent *  e)
inline

在文件 dockutils.h 第 88 行定义.

◆ hideEmptyParentSplitters()

void QxDock::internal::hideEmptyParentSplitters ( DockSplitter *  splitter)

This function walks the splitter tree upwards to hides all splitters that do not have visible content

在文件 dockutils.cpp 第 133 行定义.

◆ isHorizontalSideBarArea()

bool QxDock::internal::isHorizontalSideBarArea ( Qx::DockSideBarArea  area)

在文件 dockutils.cpp 第 153 行定义.

◆ isSideBarArea()

bool QxDock::internal::isSideBarArea ( Qx::DockWidgetArea  area)

在文件 dockutils.cpp 第 169 行定义.

◆ replaceSplitterWidget()

void QxDock::internal::replaceSplitterWidget ( QSplitter *  splitter,
QWidget *  from,
QWidget *  to 
)

Replace the from widget in the given splitter with the To widget

在文件 dockutils.cpp 第 146 行定义.

◆ repolishStyle()

void QxDock::internal::repolishStyle ( QWidget *  w,
RepolishChildOptions  options 
)

Calls unpolish() / polish for the style of the given widget to update stylesheet if a property changes

在文件 dockutils.cpp 第 108 行定义.

◆ setButtonIcon()

void QxDock::internal::setButtonIcon ( QAbstractButton *  b,
QStyle::StandardPixmap  pixmap,
Qx::DockIcon  iconId 
)

Helper function to set the icon of a certain button.

Use this function to set the icons for the dock area and dock widget buttons. The function first uses the CustomIconId to get an icon from the CIconProvider. You can register your custom icons with the icon provider, if you do not want to use the default buttons and if you do not want to use stylesheets. If the IconProvider does not return a valid icon (icon is null), the function fetches the given standard pixmap from the QStyle.

参数
[in]bThe button whose icons are to be set
[in]pixmapThe standard pixmap to be used for the button
[in]iconIdThe identifier for the custom icon.

在文件 dockutils.cpp 第 64 行定义.

◆ setFlag()

template<class T >
void QxDock::internal::setFlag ( T &  flags,
typename T::enum_type  flag,
bool  on = true 
)

在文件 dockutils.h 第 43 行定义.

◆ setToolTip()

template<class QObjectPtr >
void QxDock::internal::setToolTip ( QObjectPtr  obj,
const QString &  tip 
)

在文件 dockutils.h 第 56 行定义.

◆ toSideBarArea()

Qx::DockSideBarArea QxDock::internal::toSideBarArea ( Qx::DockWidgetArea  area)

在文件 dockutils.cpp 第 174 行定义.

变量说明

◆ DockedWidgetDragStartEvent

const int QxDock::internal::DockedWidgetDragStartEvent = QEvent::registerEventType()

在文件 dockutils.cpp 第 34 行定义.

◆ FloatingWidgetDragStartEvent

const int QxDock::internal::FloatingWidgetDragStartEvent = QEvent::registerEventType()

在文件 dockutils.cpp 第 33 行定义.