void Text::layoutEdit() { layout(); if (parent() && parent()->type() == TBOX) { TBox* tbox = static_cast<TBox*>(parent()); tbox->layout(); System* system = tbox->system(); system->setHeight(tbox->height()); score()->doLayoutPages(); score()->setUpdateAll(true); } else { static const qreal w = 2.0; // 8.0 / view->matrix().m11(); score()->addRefresh(canvasBoundingRect().adjusted(-w, -w, w, w)); } }