KParts
part.cpp
142 connect(d->m_widget.data(), &QWidget::destroyed, this, &Part::slotWidgetDestroyed, Qt::UniqueConnection);
void setParent(QWidget *parent)
This event is sent when a part is selected or deselected.
Definition: partselectevent.h:24
The part manager is an object which knows about a collection of parts (even nested ones) and handles ...
Definition: partmanager.h:36
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setAutoDeletePart(bool autoDeletePart)
By default, the part deletes itself when its widget is deleted.
Definition: part.cpp:88
void setAutoDeleteWidget(bool autoDeleteWidget)
By default, the widget is deleted by the part when the part is deleted.
Definition: part.cpp:82
PartManager * manager() const
Returns the part manager handling this part, if any (0L otherwise).
Definition: part.cpp:120
This event is sent to a Part when its GUI has been activated or deactivated. This is related to PartA...
Definition: guiactivateevent.h:26
QWidget * hostContainer(const QString &containerName)
Convenience method for KXMLGUIFactory::container.
Definition: part.cpp:197
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void destroyed(QObject *obj)
typedef WindowFlags
void deleteLater()
virtual void setComponentName(const QString &componentName, const QString &componentDisplayName)
QString name() const
KXMLGUIFactory * factory() const
UniqueConnection
virtual Part * hitTest(QWidget *widget, const QPoint &globalPos)
Returns the part (this, or a child part) at the given global position.
Definition: part.cpp:127
void setMetaData(const KPluginMetaData &metaData)
Set the meta data for this part.
Definition: part.cpp:226
void show()
void setGeometry(int x, int y, int w, int h)
static void registerPluginData(const KAboutData &aboutData)
virtual void partActivateEvent(PartActivateEvent *event)
Convenience method which is called when the Part received a PartActivateEvent .
Definition: part.cpp:183
QWidget * container(const QString &containerName, KXMLGUIClient *client, bool useTagName=false)
virtual void guiActivateEvent(GUIActivateEvent *event)
Convenience method which is called when the Part received a GUIActivateEvent .
Definition: part.cpp:193
virtual void partSelectEvent(PartSelectEvent *event)
Convenience method which is called when the Part received a PartSelectEvent .
Definition: part.cpp:188
virtual void customEvent(QEvent *event)
KIconLoader * iconLoader()
Use this icon loader to load any icons that are specific to this part, i.e.
Definition: part.cpp:95
QString pluginId() const
void loadPlugins(QObject *parent, KXMLGUIClient *parentGUIClient, const KAboutData &aboutData)
Load the Plugins honoring the PluginLoadingMode.
Definition: partbase.cpp:82
This event is sent by the part manager when the active part changes. Each time the active part change...
Definition: partactivateevent.h:28
Q_D(Todo)
virtual QString componentName() const
static KAboutData fromPluginMetaData(const KPluginMetaData &plugin)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri May 20 2022 04:25:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri May 20 2022 04:25:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.