void Command::set_e_info(Cell cell) { QPointer<Figure> fig = desk_->getFigure(cell); if (!fig.isNull()) e_cell_info_ = CellInfo(cell, fig->getFigName(), fig->getColor()); else e_cell_info_ = CellInfo(cell, " ", NONE); }
void Command::set_b_info(Cell cell) { QPointer<Figure> fig = desk_->getFigure(cell); b_cell_info_ = CellInfo(cell, fig->getFigName(), fig->getColor()); }