Don't include controller headers in view headers

view headers will be installed, so shouldn't leak impl details
much. Controllers are more low level things that the user won't use
much
This commit is contained in:
Sergio Martins
2022-06-13 19:22:21 +01:00
parent 8ba160b0f6
commit ec56120290
15 changed files with 22 additions and 14 deletions

View File

@@ -22,12 +22,13 @@
#include "View_qtquick.h"
#include "views/Stack.h"
#include "controllers/DockWidget.h"
#include <QAbstractListModel>
#include <QVector>
namespace KDDockWidgets {
namespace Controllers {
class DockWidget;
class Frame;
class TabBar;
}
@@ -109,7 +110,7 @@ Q_SIGNALS:
private:
void emitDataChangedFor(Controllers::DockWidget *);
Controllers::DockWidget::List m_dockWidgets;
QVector<Controllers::DockWidget *> m_dockWidgets;
QHash<Controllers::DockWidget *, QVector<QMetaObject::Connection>> m_connections; // To make it easy to disconnect from lambdas
bool m_removeGuard = false;
};