class Part |
|
|
Constructor.
parent - Parent object of the part. |
|
|
|
|
Internal |
|
Embed this part into a host widget.
You don't need to do this if you created the widget with the correct parent widget - this is just a QWidget.reparent(). Note that the Part is still the holder of the QWidget, meaning that if you delete the Part, then the widget gets destroyed as well, and vice-versa. This method is not recommended since creating the widget with the correct parent is simpler anyway. |
|
Convenience method which is called when the Part received a GUIActivateEvent . Reimplement this if you don't want to reimplement event and test for the event yourself or even install an event filter. |
|
Returns the part (this, or a child part) at the given global position.
This is called by the part manager to ask whether a part should be activated
when clicking somewhere. In most cases the default implementation is enough.
Reimplement this if your part has child parts in some areas (like in khtml or koffice)
widget - the part widget being clicked - usually the same as widget(), except in koffice. globalPos - the mouse coordinates in global coordinates |
|
Convenience method for KXMLGUIFactory.container. Returns a container widget owned by the Part's GUI. |
|
Use this icon loader to load any icons that are specific to this part,
i.e. icons installed into this part's own directories as opposed to standard
kde icons. Use KIcon("myicon", iconLoader()).
Make sure to call setComponentData before calling iconLoader. |
|
Returns whether the part is selectable or not. |
|
Load this part's plugins now. Normally you want to call this at the end of the part constructor, if you used setComponentData(componentData, false) @since 4.1 |
|
Returns the part manager handling this part, if any (0 otherwise). |
|
Convenience method which is called when the Part received a PartActivateEvent . Reimplement this if you don't want to reimplement event and test for the event yourself or even install an event filter. |
|
Convenience method which is called when the Part received a PartSelectEvent . Reimplement this if you don't want to reimplement event and test for the event yourself or even install an event filter. |
|
By default, the part deletes itself when its widget is deleted. The hosting application can call setAutoDeletePart(false) to disable this behavior, to be able to delete the widget and then the part, independently. This is a method for the hosting application only, Part subclasses should never call this. |
|
By default, the widget is deleted by the part when the part is deleted. The hosting application can call setAutoDeleteWidget(false) to disable this behavior, given that the widget is usually deleted by its parent widget anyway. This is a method for the hosting application only, Part subclasses should never call this. |
|
Internal Used by the part manager. |
|
selectable - Indicates whether the part is selectable or not. |
|
Emited by the part, to set a text in the statusbar of the window(s) hosting this part |
|
Set the main widget.
Call this in the Part-inherited class constructor. |
|
Emitted by the part, to set the caption of the window(s) hosting this part |
|
Internal |
|
Returns The widget defined by this part, set by setWidget(). |