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

Reviewed-by: kkoehne
This commit is contained in:
Marco Bubke
2010-04-20 15:24:28 +02:00
committed by Kai Koehne
parent 5c1078dce6
commit 17d5cbee96

View File

@@ -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"));