diff -r ae7f7fbb9cda -r 07e65a4c6611 src/polygoncache.h --- a/src/polygoncache.h Mon Jul 04 15:37:22 2022 +0300 +++ b/src/polygoncache.h Mon Jul 04 19:53:13 2022 +0300 @@ -1,19 +1,13 @@ #pragma once +#include #include "src/basics.h" #include "src/model.h" #include "src/gl/common.h" -#include "src/documentmanager.h" template struct WithId : T { - ElementId id; -}; - -struct GetPolygonsContext -{ - ModelId modelId; - class DocumentManager* documents; + std::int32_t linenumber; }; struct PolygonCache @@ -27,4 +21,4 @@ PolygonCache* cache, Model* model, class DocumentManager* documents); -PolygonCache* findPolygonCacheForModel(Model* model, DocumentManager* context); +PolygonCache* findPolygonCacheForModel(QTextDocument* model, DocumentManager* context);