blob: 1b727f88cb503881878dd9b53b13b9db674bf2dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "objectview.h"
#include "objectmodel.h"
#include "str.h"
Str ObjectView::displayModelData()
{
if (!m_model)
return {"(NULL)"};
return Str("Name: %VAR").arg(m_model->objectName());
}
void ObjectView::modifyModelData(Str &data)
{
if (m_model)
m_model->setObjectName(data);
}
ObjectType *ObjectView::getRawModelData()
{
return m_model->data();
}
|