forked from qt-creator/qt-creator
Some cleanup
Change-Id: I16e2cd891dfb2f799c6be0d606762d44b9bb0b59 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -119,7 +119,6 @@ void FormEditorItem::updateVisibilty()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FormEditorView *FormEditorItem::formEditorView() const
|
||||
{
|
||||
return scene()->editorView();
|
||||
@@ -210,17 +209,6 @@ FormEditorItem* FormEditorItem::fromQGraphicsItem(QGraphicsItem *graphicsItem)
|
||||
return qgraphicsitem_cast<FormEditorItem*>(graphicsItem);
|
||||
}
|
||||
|
||||
//static QRectF alignedRect(const QRectF &rect)
|
||||
//{
|
||||
// QRectF alignedRect(rect);
|
||||
// alignedRect.setTop(std::floor(rect.top()) + 0.5);
|
||||
// alignedRect.setBottom(std::floor(rect.bottom()) + 0.5);
|
||||
// alignedRect.setLeft(std::floor(rect.left()) + 0.5);
|
||||
// alignedRect.setRight(std::floor(rect.right()) + 0.5);
|
||||
//
|
||||
// return alignedRect;
|
||||
//}
|
||||
|
||||
void FormEditorItem::paintBoundingRect(QPainter *painter) const
|
||||
{
|
||||
if (!m_boundingRect.isValid()
|
||||
@@ -353,9 +341,6 @@ void FormEditorItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *,
|
||||
if (!qmlItemNode().isRootModelNode())
|
||||
paintBoundingRect(painter);
|
||||
|
||||
// if (qmlItemNode().modelNode().metaInfo().isSubclassOf("QtQuick.Loader", -1, -1))
|
||||
// paintComponentContentVisualisation(painter, boundingRect());
|
||||
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user