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: