Commit bd418af1 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

QmlDesigner: Fix compiler warnings

* Unused static function
* Unused argument
* Wrong enum comparison

Change-Id: I8a06f4383cbc57cdfbc6869e6f25bb88ffaeeecf
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent d4bf07a9
......@@ -54,6 +54,7 @@
namespace QmlDesigner {
#ifndef DISABLE_VISIBLE_PROPERTIES
static PropertyNameList visibleProperties(const ModelNode &node)
{
PropertyNameList propertyList;
......@@ -77,6 +78,7 @@ static PropertyNameList visibleProperties(const ModelNode &node)
return propertyList;
}
#endif
static QList<ModelNode> acceptedModelNodeChildren(const ModelNode &parentNode)
{
......@@ -342,6 +344,7 @@ static void findTargetItem(const NodeListProperty &listProperty,
int *newRowNumber,
QStandardItem **targetItem)
{
Q_UNUSED(newRowNumber);
if (navigatorTreeModel->isInTree(listProperty.parentModelNode())) {
ItemRow parentRow = navigatorTreeModel->itemRowForNode(listProperty.parentModelNode());
if (parentRow.propertyItems.contains(listProperty.name())) {
......
......@@ -379,7 +379,7 @@ void NodeInstanceServerProxy::writeCommand(const QVariant &command)
void NodeInstanceServerProxy::processFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
qWarning() << "Process" << (exitStatus == QProcess::Crashed ? "crashed:" : "finished:") << sender() << "exitCode:" << exitCode;
qWarning() << "Process" << (exitStatus == QProcess::CrashExit ? "crashed:" : "finished:") << sender() << "exitCode:" << exitCode;
if (m_captureFileForTest.isOpen()) {
m_captureFileForTest.close();
......
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