src/polygoncache.h

changeset 333
07e65a4c6611
parent 309
d862721d19a3
child 338
719b909a7d2b
--- 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 <QTextDocument>
 #include "src/basics.h"
 #include "src/model.h"
 #include "src/gl/common.h"
-#include "src/documentmanager.h"
 
 template<typename T>
 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);

mercurial