KParts

partbase.cpp
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
12using namespace KParts;
13
15 : d_ptr(new PartBasePrivate(this))
16{
17}
18
19PartBase::PartBase(PartBasePrivate &dd)
20 : d_ptr(&dd)
21{
22}
23
24PartBase::~PartBase() = default;
25
27{
29
30 d->m_obj = obj;
31}
32
33QObject *PartBase::partObject() const
34{
35 Q_D(const PartBase);
36
37 return d->m_obj;
38}
Base class for all parts.
Definition partbase.h:35
~PartBase() override
Destructor.
void setPartObject(QObject *object)
Internal method.
Definition partbase.cpp:26
PartBase()
Constructor.
Definition partbase.cpp:14
The KParts namespace,.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.