From 6e0edbcbee005219000bdc2b7ce67e5872c47378 Mon Sep 17 00:00:00 2001 From: codeboss <2422523675@qq.com> Date: Sun, 12 Oct 2025 23:06:31 +0800 Subject: [PATCH] update --- MapPresent/MapPresent.cpp | 15 --------------- MapPresent/MapPresent.h | 1 - 2 files changed, 16 deletions(-) diff --git a/MapPresent/MapPresent.cpp b/MapPresent/MapPresent.cpp index ed88b6b..c1acd69 100644 --- a/MapPresent/MapPresent.cpp +++ b/MapPresent/MapPresent.cpp @@ -223,21 +223,6 @@ QList MapPresent::item_supply(const PresentIndex& a, const Present return items; } -void MapPresent::unit_option_paint(QPainter& widget_painter, const PresentOption& xopt) -{ - auto opt = xopt; - auto rect = opt.outline; - widget_painter.translate(rect.topLeft()); - rect.moveTo(0, 0); - - auto clip_path = BasicUnitDelegate::clipPathGet(rect); - widget_painter.setClipPath(clip_path); - - opt.outline = rect; - UnitPresentDelegate& t = *_type_present_delegate[0]; - t.paint(&widget_painter, opt); -} - PresentIndex& PresentIndex::operator+=(const PresentIndex& other) { row += other.row; diff --git a/MapPresent/MapPresent.h b/MapPresent/MapPresent.h index c5bb5c5..68e61cc 100644 --- a/MapPresent/MapPresent.h +++ b/MapPresent/MapPresent.h @@ -122,7 +122,6 @@ private: /// 类型化绘制委托 /// QHash _type_present_delegate; - void unit_option_paint(QPainter& widget_painter, const PresentOption &opt); public: