Commit 17d5cbee authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Show no more 'cannot reparent' text in the feedback pane

Reviewed-by: kkoehne
parent 5c1078dc
......@@ -222,13 +222,7 @@ void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*r
painter->drawText(QPoint(60.0, 26.0), QString("h:"));
painter->drawText(QPoint(70.0, 26.0), m_feedbackNode.instanceValue("height").toString());
if (m_parentNode == m_feedbackNode.instanceParent()) {
if (!m_feedbackNode.canReparent()) {
painter->setPen(defaultColor);
painter->drawText(QPoint(2.0, 39.0), QString("Cannot reparent"));
}
} else {
if (m_parentNode != m_feedbackNode.instanceParent()) {
painter->setPen(changeColor);
painter->drawText(QPoint(2.0, 39.0), QString("Parent changed"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment