1 | /* |
2 | This file is part of the KDE project |
3 | SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org> |
4 | SPDX-FileCopyrightText: 1999-2005 David Faure <faure@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.0-or-later |
7 | */ |
8 | |
9 | #include "partbase.h" |
10 | #include "partbase_p.h" |
11 | |
12 | using namespace KParts; |
13 | |
14 | PartBase::PartBase() |
15 | : d_ptr(new PartBasePrivate(this)) |
16 | { |
17 | } |
18 | |
19 | PartBase::PartBase(PartBasePrivate &dd) |
20 | : d_ptr(&dd) |
21 | { |
22 | } |
23 | |
24 | PartBase::~PartBase() = default; |
25 | |
26 | void PartBase::setPartObject(QObject *obj) |
27 | { |
28 | Q_D(PartBase); |
29 | |
30 | d->m_obj = obj; |
31 | } |
32 | |
33 | QObject *PartBase::partObject() const |
34 | { |
35 | Q_D(const PartBase); |
36 | |
37 | return d->m_obj; |
38 | } |
39 | |