This commit is contained in:
codeboss 2025-10-12 23:06:31 +08:00
parent e5846ed637
commit 6e0edbcbee
2 changed files with 0 additions and 16 deletions

View File

@ -223,21 +223,6 @@ QList<PresentIndex> MapPresent::item_supply(const PresentIndex& a, const Present
return items; 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) PresentIndex& PresentIndex::operator+=(const PresentIndex& other)
{ {
row += other.row; row += other.row;

View File

@ -122,7 +122,6 @@ private:
/// ŔŕĐÍťŻťćÖĆÎŻÍĐ /// ŔŕĐÍťŻťćÖĆÎŻÍĐ
/// </summary> /// </summary>
QHash<int, UnitPresentDelegate*> _type_present_delegate; QHash<int, UnitPresentDelegate*> _type_present_delegate;
void unit_option_paint(QPainter& widget_painter, const PresentOption &opt);
public: public: