2014-09-10 17:27:45 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vproperty.cpp
|
|
|
|
** @author hedgeware <internal(at)hedgeware.net>
|
|
|
|
** @date
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** All rights reserved. This program and the accompanying materials
|
|
|
|
** are made available under the terms of the GNU Lesser General Public License
|
|
|
|
** (LGPL) version 2.1 which accompanies this distribution, and is available at
|
|
|
|
** http://www.gnu.org/licenses/lgpl-2.1.html
|
|
|
|
**
|
|
|
|
** This library is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
** Lesser General Public License for more details.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#include "vproperty.h"
|
2016-08-08 13:44:49 +02:00
|
|
|
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <QFlags>
|
2014-09-10 17:27:45 +02:00
|
|
|
#include <QItemEditorFactory>
|
|
|
|
#include <QLineEdit>
|
2016-08-08 13:44:49 +02:00
|
|
|
#include <QList>
|
|
|
|
#include <QMetaProperty>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QStandardItemEditorCreator>
|
|
|
|
#include <QWidget>
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
#include "vproperty_p.h"
|
|
|
|
|
|
|
|
//! Standard constructor, takes a name and a parent property as argument
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::VProperty::VProperty(const QString& name, QVariant::Type type)
|
2014-09-10 17:27:45 +02:00
|
|
|
: QObject(), d_ptr(new VPropertyPrivate(name, type))
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::VProperty::VProperty(VPropertyPrivate *d)
|
2014-09-10 17:27:45 +02:00
|
|
|
: d_ptr(d)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::VProperty::~VProperty()
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
setParent(nullptr);
|
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
while (!d_ptr->Children.isEmpty())
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
VProperty* tmpChild = d_ptr->Children.takeLast();
|
|
|
|
delete tmpChild;
|
|
|
|
}
|
|
|
|
|
|
|
|
delete d_ptr;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QString VPE::VProperty::type() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return "string";
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Get the data how it should be displayed
|
2016-12-21 13:02:55 +01:00
|
|
|
QVariant VPE::VProperty::data (int column, int role) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (column == DPC_Name && Qt::DisplayRole == role)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return QVariant(d_ptr->Name);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
|
|
|
else if (column == DPC_Data && (Qt::DisplayRole == role || Qt::EditRole == role))
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return d_ptr->VariantValue;
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
|
|
|
else if (Qt::ToolTipRole == role)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return QVariant(d_ptr->Description);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
else
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
bool VPE::VProperty::setData(const QVariant &data, int role)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
bool tmpResult = false;
|
2014-09-10 19:57:08 +02:00
|
|
|
if (Qt::EditRole == role)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
tmpResult = (d_ptr->VariantValue != data);
|
|
|
|
setValue(data);
|
|
|
|
}
|
|
|
|
|
|
|
|
return tmpResult;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
bool VPE::VProperty::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index,
|
|
|
|
const QAbstractItemDelegate *delegate) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2016-12-20 20:19:21 +01:00
|
|
|
Q_UNUSED(painter)
|
|
|
|
Q_UNUSED(option)
|
|
|
|
Q_UNUSED(index)
|
|
|
|
Q_UNUSED(delegate)
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns an editor widget, or NULL if it doesn't supply one
|
2016-12-21 13:02:55 +01:00
|
|
|
QWidget* VPE::VProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options,
|
|
|
|
const QAbstractItemDelegate* delegate)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2016-12-20 20:19:21 +01:00
|
|
|
Q_UNUSED(options)
|
|
|
|
Q_UNUSED(delegate)
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
QItemEditorFactory *factory = new QItemEditorFactory;
|
|
|
|
QItemEditorCreatorBase *lineCreator = new QStandardItemEditorCreator<QLineEdit>();
|
|
|
|
factory->registerEditor(QVariant::String, lineCreator);
|
|
|
|
QItemEditorFactory::setDefaultFactory(factory);
|
|
|
|
|
2014-10-03 13:40:39 +02:00
|
|
|
d_ptr->editor = factory->createEditor(static_cast<int>(d_ptr->PropertyVariantType), parent);
|
2014-09-10 17:27:45 +02:00
|
|
|
return d_ptr->editor;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
bool VPE::VProperty::setEditorData(QWidget* editor)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (!editor)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return false;
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
QByteArray n = editor->metaObject()->userProperty().name();
|
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
if (!n.isEmpty())
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
editor->blockSignals(true);
|
|
|
|
editor->setProperty(n, d_ptr->VariantValue);
|
|
|
|
editor->blockSignals(false);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Gets the data from the widget
|
2016-12-21 13:02:55 +01:00
|
|
|
QVariant VPE::VProperty::getEditorData(const QWidget* editor) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (!editor)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return QVariant();
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
QByteArray n = editor->metaObject()->userProperty().name();
|
|
|
|
|
|
|
|
if (!n.isEmpty())
|
2014-09-10 19:57:08 +02:00
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return editor->property(n);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
else
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns item flags
|
2016-12-21 13:02:55 +01:00
|
|
|
Qt::ItemFlags VPE::VProperty::flags(int column) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (column == DPC_Name)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
|
|
|
else if (column == DPC_Data)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable;
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
else
|
|
|
|
return Qt::NoItemFlags;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setValue(const QVariant &value)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->VariantValue = value;
|
2014-10-03 13:40:39 +02:00
|
|
|
d_ptr->VariantValue.convert(static_cast<int>(d_ptr->PropertyVariantType));
|
2014-09-10 17:27:45 +02:00
|
|
|
if (d_ptr->editor != nullptr)
|
|
|
|
{
|
|
|
|
setEditorData(d_ptr->editor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QVariant VPE::VProperty::getValue() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->VariantValue;
|
|
|
|
}
|
|
|
|
|
2015-04-15 14:44:57 +02:00
|
|
|
// cppcheck-suppress unusedFunction
|
2016-12-21 13:02:55 +01:00
|
|
|
QString VPE::VProperty::serialize() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return getValue().toString();
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::deserialize(const QString& value)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
setValue(QVariant(value));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setName(const QString& name)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->Name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QString VPE::VProperty::getName() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Name;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setDescription(const QString& desc)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->Description = desc;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QString VPE::VProperty::getDescription() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Description;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns a reference to the list of children
|
2016-12-21 13:02:55 +01:00
|
|
|
QList<VPE::VProperty*>& VPE::VProperty::getChildren()
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Children;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns a reference to the list of children
|
2016-12-21 13:02:55 +01:00
|
|
|
const QList<VPE::VProperty*>& VPE::VProperty::getChildren() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Children;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns the child at a certain row
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::VProperty* VPE::VProperty::getChild(int row) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (row >= 0 && row < getRowCount())
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return d_ptr->Children.at(row);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
else
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Gets the number of children
|
2016-12-21 13:02:55 +01:00
|
|
|
int VPE::VProperty::getRowCount() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Children.count();
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Gets the parent of this property
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::VProperty* VPE::VProperty::getParent() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Sets the parent of this property
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setParent(VProperty* parent)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (d_ptr->Parent == parent)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
return;
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
VProperty* oldParent = d_ptr->Parent;
|
|
|
|
d_ptr->Parent = parent;
|
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
if (oldParent)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
oldParent->removeChild(this);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
if (d_ptr->Parent && d_ptr->Parent->getChildRow(this) == -1)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
d_ptr->Parent->addChild(this);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
int VPE::VProperty::addChild(VProperty *child)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (child && child->getParent() != this)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
child->setParent(this);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
if (!d_ptr->Children.contains(child) && child != nullptr)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->Children.push_back(child);
|
|
|
|
return d_ptr->Children.count()-1;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return d_ptr->Children.indexOf(child);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Removes a child from the children list
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::removeChild(VProperty* child)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->Children.removeAll(child);
|
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
if (child && child->getParent() == this)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
child->setParent(nullptr);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns the row the child has
|
2016-12-21 13:02:55 +01:00
|
|
|
int VPE::VProperty::getChildRow(VProperty* child) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->Children.indexOf(child);
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns whether the views have to update the parent of this property if it changes
|
2016-12-21 13:02:55 +01:00
|
|
|
bool VPE::VProperty::getUpdateParent() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->UpdateParent;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Returns whether the views have to update the children of this property if it changes
|
2016-12-21 13:02:55 +01:00
|
|
|
bool VPE::VProperty::getUpdateChildren() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->UpdateChildren;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Sets whether the views should update Parents or children after this property changes
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setUpdateBehaviour(bool update_parent, bool update_children)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->UpdateParent = update_parent;
|
|
|
|
d_ptr->UpdateChildren = update_children;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setSettings(const QMap<QString, QVariant>& settings)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
QMap<QString, QVariant>::const_iterator tmpIterator = settings.constBegin();
|
2014-09-10 19:57:08 +02:00
|
|
|
for (; tmpIterator != settings.constEnd(); ++tmpIterator)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
setSetting(tmpIterator.key(), tmpIterator.value());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QMap<QString, QVariant> VPE::VProperty::getSettings() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
QMap<QString, QVariant> tmpResult;
|
|
|
|
|
2018-04-03 10:15:58 +02:00
|
|
|
const QStringList tmpKeyList = getSettingKeys();
|
|
|
|
for(auto &tmpKey : tmpKeyList)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
tmpResult.insert(tmpKey, getSetting(tmpKey));
|
2018-04-03 10:15:58 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
return tmpResult;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setSetting(const QString& key, const QVariant& value)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
Q_UNUSED(key)
|
|
|
|
Q_UNUSED(value)
|
|
|
|
// Not needed in the Standard property
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QVariant VPE::VProperty::getSetting(const QString& key) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
// Not needed in the Standard property
|
|
|
|
Q_UNUSED(key)
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
QStringList VPE::VProperty::getSettingKeys() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return QStringList();
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::VProperty* VPE::VProperty::clone(bool include_children, VProperty* container) const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-10 19:57:08 +02:00
|
|
|
if (!container)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
container = new VProperty(getName(), d_ptr->PropertyVariantType);
|
2014-09-10 19:57:08 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
container->setName(getName());
|
|
|
|
container->setDescription(getDescription());
|
|
|
|
container->setValue(getValue());
|
|
|
|
container->setSettings(getSettings());
|
|
|
|
container->setUpdateBehaviour(getUpdateParent(), getUpdateChildren());
|
|
|
|
container->setPropertyType(propertyType());
|
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
if (include_children)
|
|
|
|
{
|
2018-04-03 10:15:58 +02:00
|
|
|
const QList<VProperty*> children = d_ptr->Children;
|
|
|
|
for (auto tmpChild : children)
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
container->addChild(tmpChild->clone(true));
|
2018-04-03 10:15:58 +02:00
|
|
|
}
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return container;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::Property VPE::VProperty::propertyType() const
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
return d_ptr->type;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::setPropertyType(const Property &type)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
|
|
|
d_ptr->type = type;
|
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::UpdateParent(const QVariant &value)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2016-12-20 20:19:21 +01:00
|
|
|
Q_UNUSED(value)
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
void VPE::VProperty::ValueChildChanged(const QVariant &value, int typeForParent)
|
2014-09-10 17:27:45 +02:00
|
|
|
{
|
2014-09-11 16:15:49 +02:00
|
|
|
Q_UNUSED(value)
|
|
|
|
Q_UNUSED(typeForParent)
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
2014-09-11 18:52:02 +02:00
|
|
|
|
2016-12-21 13:02:55 +01:00
|
|
|
VPE::UserChangeEvent::~UserChangeEvent()
|
2014-09-11 18:52:02 +02:00
|
|
|
{}
|
2014-09-13 22:42:58 +02:00
|
|
|
|
|
|
|
VPE::VPropertyPrivate::~VPropertyPrivate()
|
|
|
|
{}
|