Warning, file /office/calligra/gemini/PropertyContainer.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2012 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "PropertyContainer.h" 0008 0009 PropertyContainer::PropertyContainer(QString name, QObject* parent) 0010 : QObject(parent) 0011 , m_name(name) 0012 { 0013 } 0014 0015 PropertyContainer::~PropertyContainer() 0016 { 0017 } 0018 0019 void PropertyContainer::writeProperty(QString name, QVariant value) 0020 { 0021 setProperty(name.toLatin1(), value); 0022 } 0023 0024 QVariant PropertyContainer::readProperty(QString name) 0025 { 0026 return property(name.toLatin1()); 0027 } 0028 0029 QString PropertyContainer::name() 0030 { 0031 return m_name; 0032 }