|
QtCanpool 3.3.0
|
DockOverlayCross shows a cross with 5 different drop area possibilities. 更多...
#include <qxdock/dockoverlay.h>

Public 类型 | |
| enum | IconColor { FrameColor , WindowBackgroundColor , OverlayColor , ArrowColor , ShadowColor } |
| enum | IconColorSizes { NIconColors = 5 } |
Public 成员函数 | |
| DockOverlayCross (DockOverlay *overlay) | |
| virtual | ~DockOverlayCross () |
| QColor | iconColor (IconColor colorIndex) const |
| void | setIconColor (IconColor colorIndex, const QColor &color) |
| Qx::DockWidgetArea | cursorLocation () const |
| Returns the dock widget area depending on the current cursor location. | |
| void | setupOverlayCross (DockOverlay::OverlayMode mode) |
| void | updateOverlayIcons () |
| void | reset () |
| void | updatePosition () |
| void | setIconColors (const QString &colors) |
| A string with all icon colors to set. | |
Protected 成员函数 | |
| QString | iconColors () const |
| QColor | iconColor () const |
| void | setIconFrameColor (const QColor &color) |
| void | setIconBackgroundColor (const QColor &color) |
| void | setIconOverlayColor (const QColor &color) |
| void | setIconArrowColor (const QColor &color) |
| void | setIconShadowColor (const QColor &color) |
| void | setAreaWidgets (const QHash< Qx::DockWidgetArea, QWidget * > &widgets) |
| virtual void | showEvent (QShowEvent *e) override |
DockOverlayCross shows a cross with 5 different drop area possibilities.
I could have handled everything inside DockOverlay, but because of some styling issues it's better to have a separate class for the cross. You can style the cross icon using the property system.
Or you can use the iconColors property to pass in AARRGGBB values as hex string like shown in the example below.
在文件 dockoverlay.h 第 80 行定义.
在文件 dockoverlay.h 第 90 行定义.
| 枚举值 | |
|---|---|
| NIconColors | |
在文件 dockoverlay.h 第 97 行定义.
| QxDock::DockOverlayCross::DockOverlayCross | ( | DockOverlay * | overlay | ) |
在文件 dockoverlay.cpp 第 662 行定义.
|
virtual |
在文件 dockoverlay.cpp 第 678 行定义.
| Qx::DockWidgetArea QxDock::DockOverlayCross::cursorLocation | ( | ) | const |
Returns the dock widget area depending on the current cursor location.
The function checks, if the mouse cursor is inside of any drop indicator widget and returns the corresponding DockWidgetArea.
在文件 dockoverlay.cpp 第 701 行定义.
|
inlineprotected |
在文件 dockoverlay.h 第 120 行定义.
| QColor QxDock::DockOverlayCross::iconColor | ( | IconColor | colorIndex | ) | const |
在文件 dockoverlay.cpp 第 683 行定义.
|
protected |
在文件 dockoverlay.cpp 第 822 行定义.
| void QxDock::DockOverlayCross::reset | ( | ) |
在文件 dockoverlay.cpp 第 754 行定义.
|
protected |
在文件 dockoverlay.cpp 第 827 行定义.
|
inlineprotected |
在文件 dockoverlay.h 第 136 行定义.
|
inlineprotected |
在文件 dockoverlay.h 第 128 行定义.
| void QxDock::DockOverlayCross::setIconColor | ( | IconColor | colorIndex, |
| const QColor & | color | ||
| ) |
在文件 dockoverlay.cpp 第 689 行定义.
| void QxDock::DockOverlayCross::setIconColors | ( | const QString & | colors | ) |
A string with all icon colors to set.
You can use this property to style the overly icon via CSS stylesheet file. The colors are set via a color identifier and a hex AARRGGBB value like in the example below.
在文件 dockoverlay.cpp 第 795 行定义.
|
inlineprotected |
在文件 dockoverlay.h 第 124 行定义.
|
inlineprotected |
在文件 dockoverlay.h 第 132 行定义.
|
inlineprotected |
在文件 dockoverlay.h 第 140 行定义.
| void QxDock::DockOverlayCross::setupOverlayCross | ( | DockOverlay::OverlayMode | mode | ) |
在文件 dockoverlay.cpp 第 716 行定义.
|
overrideprotectedvirtual |
在文件 dockoverlay.cpp 第 881 行定义.
| void QxDock::DockOverlayCross::updateOverlayIcons | ( | ) |
在文件 dockoverlay.cpp 第 737 行定义.
| void QxDock::DockOverlayCross::updatePosition | ( | ) |
在文件 dockoverlay.cpp 第 773 行定义.