File indexing completed on 2024-05-12 03:57:42

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org>
0004     SPDX-FileCopyrightText: 1999-2005 David Faure <faure@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #include "partbase.h"
0010 #include "partbase_p.h"
0011 
0012 using namespace KParts;
0013 
0014 PartBase::PartBase()
0015     : d_ptr(new PartBasePrivate(this))
0016 {
0017 }
0018 
0019 PartBase::PartBase(PartBasePrivate &dd)
0020     : d_ptr(&dd)
0021 {
0022 }
0023 
0024 PartBase::~PartBase() = default;
0025 
0026 void PartBase::setPartObject(QObject *obj)
0027 {
0028     Q_D(PartBase);
0029 
0030     d->m_obj = obj;
0031 }
0032 
0033 QObject *PartBase::partObject() const
0034 {
0035     Q_D(const PartBase);
0036 
0037     return d->m_obj;
0038 }