12class DockOverlayPrivate;
29 explicit DockOverlay(QWidget *parent, OverlayMode mode = PanelOverlayMode);
32 void setAllowedAreas(Qx::DockWidgetAreas areas);
34 Qx::DockWidgetAreas allowedAreas()
const;
36 int tabIndexUnderCursor()
const;
43 void enableDropPreview(
bool enable);
45 QRect dropOverlayRect()
const;
47 virtual bool event(QEvent *e)
override;
48 virtual void paintEvent(QPaintEvent *e)
override;
49 virtual void showEvent(QShowEvent *e)
override;
50 virtual void hideEvent(QHideEvent *e)
override;
55class DockOverlayCrossPrivate;
83 Q_PROPERTY(QString iconColors READ iconColors WRITE setIconColors)
84 Q_PROPERTY(QColor iconFrameColor READ iconColor WRITE setIconFrameColor)
85 Q_PROPERTY(QColor iconBackgroundColor READ iconColor WRITE setIconBackgroundColor)
86 Q_PROPERTY(QColor iconOverlayColor READ iconColor WRITE setIconOverlayColor)
87 Q_PROPERTY(QColor iconArrowColor READ iconColor WRITE setIconArrowColor)
88 Q_PROPERTY(QColor iconShadowColor READ iconColor WRITE setIconShadowColor)
104 QColor iconColor(IconColor colorIndex)
const;
105 void setIconColor(IconColor colorIndex,
const QColor &color);
111 void updateOverlayIcons();
115 void updatePosition();
117 void setIconColors(
const QString &colors);
119 QString iconColors()
const;
126 setIconColor(FrameColor, color);
130 setIconColor(WindowBackgroundColor, color);
134 setIconColor(OverlayColor, color);
138 setIconColor(ArrowColor, color);
142 setIconColor(ShadowColor, color);
145 void setAreaWidgets(
const QHash<Qx::DockWidgetArea, QWidget *> &widgets);
147 virtual void showEvent(QShowEvent *e)
override;
DockOverlayCross shows a cross with 5 different drop area possibilities.
@ WindowBackgroundColor
the background color of the small window in the icon
@ FrameColor
the color of the frame of the small window icon
@ OverlayColor
the color that shows the overlay (the dock side) in the icon
@ ArrowColor
the arrow that points into the direction
void setIconShadowColor(const QColor &color)
void setIconFrameColor(const QColor &color)
void setIconBackgroundColor(const QColor &color)
void setIconArrowColor(const QColor &color)
void setIconOverlayColor(const QColor &color)
DockOverlay paints a translucent rectangle over another widget.
#define QX_DECLARE_PRIVATE(Class)
#define QX_DOCK_END_NAMESPACE
#define QX_DOCK_BEGIN_NAMESPACE