Skip to content

Commit 8570139

Browse files
committed
fix forward declarations (class/struct)
1 parent b38919e commit 8570139

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/DockAreaTabBar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class CDockAreaTabBar : public QScrollArea
4949
Q_OBJECT
5050
private:
5151
DockAreaTabBarPrivate* d; ///< private data (pimpl)
52-
friend class DockAreaTabBarPrivate;
52+
friend struct DockAreaTabBarPrivate;
5353
friend class CDockAreaTitleBar;
5454

5555
private slots:

src/DockAreaTitleBar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CDockAreaTitleBar : public QFrame
5050
Q_OBJECT
5151
private:
5252
DockAreaTitleBarPrivate* d; ///< private data (pimpl)
53-
friend class DockAreaTitleBarPrivate;
53+
friend struct DockAreaTitleBarPrivate;
5454

5555
private slots:
5656
void markTabsMenuOutdated();

src/DockAreaWidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace ads
4343
struct DockAreaWidgetPrivate;
4444
class CDockManager;
4545
class CDockContainerWidget;
46-
struct DockContainerWidgetPrivate;
46+
class DockContainerWidgetPrivate;
4747

4848

4949
/**
@@ -58,7 +58,7 @@ class ADS_EXPORT CDockAreaWidget : public QFrame
5858
DockAreaWidgetPrivate* d; ///< private data (pimpl)
5959
friend struct DockAreaWidgetPrivate;
6060
friend class CDockContainerWidget;
61-
friend struct DockContainerWidgetPrivate;
61+
friend class DockContainerWidgetPrivate;
6262
friend class CDockWidgetTab;
6363
friend struct DockWidgetPrivate;
6464
friend class CDockWidget;

src/DockContainerWidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ADS_EXPORT CDockContainerWidget : public QFrame
5757
Q_OBJECT
5858
private:
5959
DockContainerWidgetPrivate* d; ///< private data (pimpl)
60-
friend struct DockContainerWidgetPrivate;
60+
friend class DockContainerWidgetPrivate;
6161
friend class CDockManager;
6262
friend struct DockManagerPrivate;
6363
friend class CDockAreaWidget;

src/DockWidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CDockWidgetTab;
4444
class CDockManager;
4545
class CDockContainerWidget;
4646
class CDockAreaWidget;
47-
struct DockContainerWidgetPrivate;
47+
class DockContainerWidgetPrivate;
4848

4949
/**
5050
* The QDockWidget class provides a widget that can be docked inside a
@@ -69,7 +69,7 @@ private slots:
6969
friend class CFloatingDockContainer;
7070
friend class CDockManager;
7171
friend struct DockManagerPrivate;
72-
friend struct DockContainerWidgetPrivate;
72+
friend class DockContainerWidgetPrivate;
7373
friend class CDockAreaTabBar;
7474
friend class CDockWidgetTab;
7575
friend struct DockWidgetTabPrivate;

src/ElidingLabel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CElidingLabel : public QLabel
4646
Q_OBJECT
4747
private:
4848
ElidingLabelPrivate* d;
49-
friend class ElidingLabelPrivate;
49+
friend struct ElidingLabelPrivate;
5050

5151
protected:
5252
virtual void mouseReleaseEvent(QMouseEvent* event) override;

0 commit comments

Comments
 (0)