Commit e01c6273 authored by Kai Koehne's avatar Kai Koehne
Browse files

QuickDesigner: Fix typo in method name

parent 3ae3e3f3
......@@ -371,7 +371,7 @@ QPainterPath AnchorController::createTargetNamePathPath(AnchorLine::Type anchorL
QFont font;
font.setPixelSize(24);
QString nameString(QString("%1 (%2)").arg(targetAnchorLine.qmlItemNode().simplfiedTypeName()).arg(targetAnchorLine.qmlItemNode().id()));
QString nameString(QString("%1 (%2)").arg(targetAnchorLine.qmlItemNode().simplifiedTypeName()).arg(targetAnchorLine.qmlItemNode().id()));
path.addText(0., -4., font, nameString);
//path.translate(centerBoundingBoxInLayerSpace - path.qmlItemNode().instanceBoundingRect().center());
......
......@@ -101,13 +101,13 @@ QString AnchorHandleItem::toolTipString() const
{
QString templateString("<p>Anchor Handle</p><p>%1</p><p>%2</p>");
QmlItemNode fromNode(anchorController().formEditorItem()->qmlItemNode());
QString fromString(QString("%3: %1(%2)").arg(fromNode.simplfiedTypeName(), fromNode.id(), anchorLineToString(sourceAnchorLine())));
QString fromString(QString("%3: %1(%2)").arg(fromNode.simplifiedTypeName(), fromNode.id(), anchorLineToString(sourceAnchorLine())));
AnchorLine toAnchorLine(targetAnchorLine());
QmlItemNode toNode(toAnchorLine.qmlItemNode());
QString toString;
if (toNode.isValid())
toString = QString("%3: %1(%2)").arg(toNode.simplfiedTypeName(), toNode.id(), anchorLineToString(toAnchorLine.type()));
toString = QString("%3: %1(%2)").arg(toNode.simplifiedTypeName(), toNode.id(), anchorLineToString(toAnchorLine.type()));
return templateString.arg(fromString).arg(toString);
}
......
......@@ -80,7 +80,7 @@ void SiblingComboBox::setup()
foreach (const QmlItemNode &itemNode, m_itemList) {
if (itemNode.isValid()) {
if (itemNode.id().isEmpty())
addItem(itemNode.simplfiedTypeName());
addItem(itemNode.simplifiedTypeName());
else
addItem(itemNode.id());
}
......@@ -93,7 +93,7 @@ void SiblingComboBox::setup()
QString parentString("Parent (");
if (parent.id().isEmpty())
parentString += parent.simplfiedTypeName();
parentString += parent.simplifiedTypeName();
else
parentString += parent.id();
parentString += ")";
......
......@@ -82,7 +82,7 @@ public:
void deselectNode();
bool isSelected() const;
QString simplfiedTypeName() const;
QString simplifiedTypeName() const;
const QList<QmlItemNode> allDirectSubModelNodes() const;
const QList<QmlItemNode> allSubModelNodes() const;
......
......@@ -250,7 +250,7 @@ QList<QmlModelState> QmlModelStateGroup::allStates() const
return returnList;
}
QString QmlItemNode::simplfiedTypeName() const
QString QmlItemNode::simplifiedTypeName() const
{
return modelNode().simplifiedTypeName();
}
......
Markdown is supported
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