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

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 <>
Reviewed-by: default avatarTim Jenssen <>
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)
if (navigatorTreeModel->isInTree(listProperty.parentModelNode())) {
ItemRow parentRow = navigatorTreeModel->itemRowForNode(listProperty.parentModelNode());
if (parentRow.propertyItems.contains( {
*targetItem = parentRow.propertyItems.value(;
} else { // default property
*targetItem = parentRow.idItem;
newRowNumber += visibleProperties(listProperty.parentModelNode()).count();
} 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)) {
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