Пример #1
0
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);
}
Пример #2
0
void Command::set_b_info(Cell cell)
{
    QPointer<Figure> fig = desk_->getFigure(cell);
    b_cell_info_ = CellInfo(cell, fig->getFigName(), fig->getColor());
}