forked from qt-creator/qt-creator
ADS: Remove struct from FloatingDragPreview
Change-Id: Ib254b9eff1a2a5bd6951d5c9c59c9290664c2c89 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -54,8 +54,8 @@ struct DockManagerPrivate;
|
|||||||
class FloatingDockContainer;
|
class FloatingDockContainer;
|
||||||
class FloatingDockContainerPrivate;
|
class FloatingDockContainerPrivate;
|
||||||
class FloatingDragPreview;
|
class FloatingDragPreview;
|
||||||
struct FloatingDragPreviewPrivate;
|
|
||||||
class DockingStateReader;
|
class DockingStateReader;
|
||||||
|
class FloatingDragPreviewPrivate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Container that manages a number of dock areas with single dock widgets
|
* Container that manages a number of dock areas with single dock widgets
|
||||||
@@ -78,7 +78,7 @@ private:
|
|||||||
friend class FloatingDockContainerPrivate;
|
friend class FloatingDockContainerPrivate;
|
||||||
friend class DockWidget;
|
friend class DockWidget;
|
||||||
friend class FloatingDragPreview;
|
friend class FloatingDragPreview;
|
||||||
friend struct FloatingDragPreviewPrivate;
|
friend class FloatingDragPreviewPrivate;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
@@ -106,7 +106,7 @@ private:
|
|||||||
friend struct DockAreaWidgetPrivate;
|
friend struct DockAreaWidgetPrivate;
|
||||||
friend struct DockWidgetTabPrivate;
|
friend struct DockWidgetTabPrivate;
|
||||||
friend class FloatingDragPreview;
|
friend class FloatingDragPreview;
|
||||||
friend struct FloatingDragPreviewPrivate;
|
friend class FloatingDragPreviewPrivate;
|
||||||
friend class DockAreaTitleBar;
|
friend class DockAreaTitleBar;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -56,8 +56,9 @@ namespace ADS
|
|||||||
/**
|
/**
|
||||||
* Private data class (pimpl)
|
* Private data class (pimpl)
|
||||||
*/
|
*/
|
||||||
struct FloatingDragPreviewPrivate
|
class FloatingDragPreviewPrivate
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
FloatingDragPreview *q;
|
FloatingDragPreview *q;
|
||||||
QWidget *m_content;
|
QWidget *m_content;
|
||||||
DockAreaWidget *m_contentSourceArea = nullptr;
|
DockAreaWidget *m_contentSourceArea = nullptr;
|
||||||
@@ -91,8 +92,7 @@ namespace ADS
|
|||||||
m_dockManager->dockAreaOverlay()->hideOverlay();
|
m_dockManager->dockAreaOverlay()->hideOverlay();
|
||||||
q->close();
|
q->close();
|
||||||
}
|
}
|
||||||
};
|
}; // class FloatingDragPreviewPrivate
|
||||||
// struct FloatingDragPreviewPrivate
|
|
||||||
|
|
||||||
void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &globalPosition)
|
void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &globalPosition)
|
||||||
{
|
{
|
||||||
|
@@ -43,7 +43,7 @@ namespace ADS {
|
|||||||
|
|
||||||
class DockWidget;
|
class DockWidget;
|
||||||
class DockAreaWidget;
|
class DockAreaWidget;
|
||||||
struct FloatingDragPreviewPrivate;
|
class FloatingDragPreviewPrivate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A floating overlay is a temporary floating widget that is just used to
|
* A floating overlay is a temporary floating widget that is just used to
|
||||||
@@ -56,7 +56,7 @@ class FloatingDragPreview : public QWidget, public AbstractFloatingWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private:
|
private:
|
||||||
FloatingDragPreviewPrivate *d;
|
FloatingDragPreviewPrivate *d;
|
||||||
friend struct FloatingDragPreviewPrivate;
|
friend class FloatingDragPreviewPrivate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancel non opaque undocking if application becomes inactive
|
* Cancel non opaque undocking if application becomes inactive
|
||||||
|
Reference in New Issue
Block a user