Commit b1261796 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Thomas Hartmann

QmlDesigner: Fix compiler warnings

navigatorview.cpp:297: warning: unused parameter 'oldIndex'

navigatortreemodel.cpp:344: warning: 'void QmlDesigner::findTargetItem(.
..)' defined but not used

Change-Id: I02183215f766a31fea63da15c7d79c1dd563d840
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 8907c093
......@@ -341,28 +341,6 @@ void NavigatorTreeModel::updateItemRow(const ModelNode &node)
updateItemRow(node, itemRowForNode(node));
}
static void findTargetItem(const NodeListProperty &listProperty,
const ItemRow &currentItemRow,
NavigatorTreeModel *navigatorTreeModel,
int *newRowNumber,
QStandardItem **targetItem)
{
Q_UNUSED(newRowNumber);
if (navigatorTreeModel->isInTree(listProperty.parentModelNode())) {
ItemRow parentRow = navigatorTreeModel->itemRowForNode(listProperty.parentModelNode());
if (parentRow.propertyItems.contains(listProperty.name())) {
*targetItem = parentRow.propertyItems.value(listProperty.name());
} else { // default property
*targetItem = parentRow.idItem;
#ifndef DISABLE_VISIBLE_PROPERTIES
newRowNumber += visibleProperties(listProperty.parentModelNode()).count();
#endif
}
} else {
*targetItem = currentItemRow.idItem->parent();
}
}
static void handleWrongId(QStandardItem *item, const ModelNode &modelNode, const QString &errorTitle, const QString &errorMessage, NavigatorTreeModel *treeModel)
{
QMessageBox::warning(Core::ICore::dialogParent(), errorTitle, errorMessage);
......
......@@ -294,7 +294,7 @@ void NavigatorView::instancesToken(const QString &/*tokenName*/, int /*tokenNumb
}
void NavigatorView::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &node, int oldIndex)
void NavigatorView::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &node, int /*oldIndex*/)
{
if (m_treeModel->isInTree(node)) {
m_treeModel->removeSubTree(listProperty.parentModelNode());
......
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