--- a/src/lddocument.h Sat Mar 24 10:51:20 2018 +0200 +++ b/src/lddocument.h Sat Mar 24 11:05:40 2018 +0200 @@ -18,15 +18,12 @@ #pragma once #include <QObject> -#include "main.h" -#include "linetypes/modelobject.h" -#include "editHistory.h" -#include "glShared.h" #include "model.h" #include "hierarchyelement.h" struct LDGLData; class DocumentManager; +class EditHistory; struct LDHeader { @@ -146,12 +143,6 @@ QSet<Vertex> m_vertices; DocumentManager* m_manager; - template<typename T, typename... Args> - void addToHistory(Args&&... args) - { - m_history->add<T>(args...); - } - private slots: void objectChanged(const LDObjectState &before, const LDObjectState &after); void handleNewObject(const QModelIndex& index);