mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] LayoutField: update the grey squares when using insertion
cursor
This commit is contained in:
@@ -43,7 +43,9 @@ bool LayoutField::ContentView::setEditing(bool isEditing) {
|
||||
|
||||
void LayoutField::ContentView::useInsertionCursor() {
|
||||
if (m_insertionCursor.isDefined()) {
|
||||
m_cursor.layout().removeGreySquaresFromAllMatrixAncestors();
|
||||
m_cursor = m_insertionCursor;
|
||||
m_cursor.layout().addGreySquaresToAllMatrixAncestors();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ public:
|
||||
node()->setVisible(visible);
|
||||
}
|
||||
|
||||
EmptyLayoutNode::Color color() const { return node()->color(); }
|
||||
void setColor(EmptyLayoutNode::Color color) {
|
||||
node()->setColor(color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user