ADS: Remove struct from DockManager

We do not use struct in Qt Creator.

Change-Id: I7755d66bc7b77825ab17ed333b23cbe36e52ff72
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2020-03-02 10:43:54 +01:00
committed by Tim Jenssen
parent 2642f8537d
commit 95182dc6b9
6 changed files with 11 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ private:
friend class DockWidgetTab;
friend class DockWidgetPrivate;
friend class DockWidget;
friend struct DockManagerPrivate;
friend class DockManagerPrivate;
friend class DockManager;
void onTabCloseRequested(int index);

View File

@@ -50,7 +50,7 @@ class DockContainerWidgetPrivate;
class DockAreaWidget;
class DockWidget;
class DockManager;
struct DockManagerPrivate;
class DockManagerPrivate;
class FloatingDockContainer;
class FloatingDockContainerPrivate;
class FloatingDragPreview;
@@ -71,7 +71,7 @@ private:
DockContainerWidgetPrivate *d; ///< private data (pimpl)
friend class DockContainerWidgetPrivate;
friend class DockManager;
friend struct DockManagerPrivate;
friend class DockManagerPrivate;
friend class DockAreaWidget;
friend struct DockAreaWidgetPrivate;
friend class FloatingDockContainer;

View File

@@ -77,8 +77,9 @@ namespace ADS
/**
* Private data class of DockManager class (pimpl)
*/
struct DockManagerPrivate
class DockManagerPrivate
{
public:
DockManager *q;
QList<FloatingDockContainer *> m_floatingWidgets;
QList<DockContainerWidget *> m_containers;
@@ -144,8 +145,7 @@ namespace ADS
bool restoreContainer(int index, DockingStateReader &stream, bool testing);
void workspaceLoadingProgress();
};
// struct DockManagerPrivate
}; // class DockManagerPrivate
DockManagerPrivate::DockManagerPrivate(DockManager *parent)
: q(parent)

View File

@@ -66,7 +66,7 @@ const char STARTUP_WORKSPACE_SETTINGS_KEY[] = "QML/Designer/StartupWorkspace";
const char AUTO_RESTORE_WORKSPACE_SETTINGS_KEY[] = "QML/Designer/AutoRestoreLastWorkspace";
} // namespace Constants
struct DockManagerPrivate;
class DockManagerPrivate;
class FloatingDockContainer;
class FloatingDockContainerPrivate;
class DockComponentsFactory;
@@ -96,7 +96,7 @@ class ADS_EXPORT DockManager : public DockContainerWidget
Q_OBJECT
private:
DockManagerPrivate *d; ///< private data (pimpl)
friend struct DockManagerPrivate;
friend class DockManagerPrivate;
friend class FloatingDockContainer;
friend class FloatingDockContainerPrivate;
friend class DockContainerWidget;

View File

@@ -75,7 +75,7 @@ protected:
friend class DockAreaWidget;
friend class FloatingDockContainer;
friend class DockManager;
friend struct DockManagerPrivate;
friend class DockManagerPrivate;
friend class DockContainerWidgetPrivate;
friend class DockAreaTabBar;
friend class DockWidgetTab;

View File

@@ -50,7 +50,7 @@ namespace ADS {
class FloatingDockContainerPrivate;
class DockManager;
struct DockManagerPrivate;
class DockManagerPrivate;
class DockAreaWidget;
class DockContainerWidget;
class DockWidget;
@@ -113,7 +113,7 @@ private:
FloatingDockContainerPrivate *d; ///< private data (pimpl)
friend class FloatingDockContainerPrivate;
friend class DockManager;
friend struct DockManagerPrivate;
friend class DockManagerPrivate;
friend class DockAreaTabBar;
friend struct DockWidgetTabPrivate;
friend class DockWidgetTab;