update
This commit is contained in:
parent
e5846ed637
commit
6e0edbcbee
|
|
@ -223,21 +223,6 @@ QList<PresentIndex> 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;
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ private:
|
|||
/// ŔŕĐÍťŻťćÖĆÎŻÍĐ
|
||||
/// </summary>
|
||||
QHash<int, UnitPresentDelegate*> _type_present_delegate;
|
||||
void unit_option_paint(QPainter& widget_painter, const PresentOption &opt);
|
||||
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Reference in New Issue