From d40796abb092e155dc68b5f7285b7ba09a3a7337 Mon Sep 17 00:00:00 2001 From: ArgonarioD Date: Sat, 18 Mar 2023 18:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BALayerStyleContainer=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E6=96=87=E6=A1=A3=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArchitectureColoredPainting/src/Editor/LayerStyle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArchitectureColoredPainting/src/Editor/LayerStyle.h b/ArchitectureColoredPainting/src/Editor/LayerStyle.h index a310b6e..f84af8c 100644 --- a/ArchitectureColoredPainting/src/Editor/LayerStyle.h +++ b/ArchitectureColoredPainting/src/Editor/LayerStyle.h @@ -32,6 +32,9 @@ public: virtual std::unique_ptr clone() const = 0; }; +/** + * LayerStyle的容器,在每次数据变更时需要手动调用computeNewHash()方法,否则哈希值不会更新 + */ class LayerStyleContainer : public Renderer::ElementStyle { using DisplayNameWithSupplier = std::map()>>;