KParts::StatusBarExtension Class Reference
an extension for KParts that allows more sophisticated statusbar handling More...
#include <statusbarextension.h>
Inheritance diagram for KParts::StatusBarExtension:


Public Member Functions | |
StatusBarExtension (KParts::ReadOnlyPart *parent, const char *name=0L) | |
~StatusBarExtension () | |
void | addStatusBarItem (QWidget *widget, int stretch, bool permanent) |
void | removeStatusBarItem (QWidget *widget) |
KStatusBar * | statusBar () const |
void | setStatusBar (KStatusBar *status) |
virtual bool | eventFilter (QObject *watched, QEvent *ev) |
Static Public Member Functions | |
static StatusBarExtension * | childObject (QObject *obj) |
Detailed Description
an extension for KParts that allows more sophisticated statusbar handlingEvery part can use this class to customize the statusbar as long as it is active. Add items via addStatusBarItem and remove an item with removeStatusBarItem.
IMPORTANT: do NOT add any items immediately after constructing the extension. Give the application time to set the statusbar in the extension if necessary.
- Since:
- 3.2
Definition at line 53 of file statusbarextension.h.
Member Function Documentation
|
This adds a widget to the statusbar for this part. If you use this method instead of using statusBar() directly, this extension will take care of removing the items when the parts GUI is deactivated and will re-add them when it is reactivated. The parameters are the same as QStatusBar::addWidget(). Note that you can't use KStatusBar methods (inserting text items by id) but you can create a KStatusBarLabel with a dummy id instead, and use it directly in order to get the same look and feel.
Definition at line 150 of file statusbarextension.cpp. References QValueList::append(), QValueList::fromLast(), and statusBar(). |
|
Remove a widget from the statusbar for this part.
Definition at line 160 of file statusbarextension.cpp. References QValueList::begin(), QValueList::end(), endl(), kdWarning(), QValueList::remove(), and statusBar(). |
|
Definition at line 134 of file statusbarextension.cpp. References QObject::parent(), KMainWindow::statusBar(), and QWidget::topLevelWidget(). Referenced by addStatusBarItem(), eventFilter(), and removeStatusBarItem(). |
|
This allows the hosting application to set a particular KStatusBar for this part. If it doesn't do this, the statusbar used will be the one of the KMainWindow in which the part is embedded. Konqueror uses this to assign a view-statusbar to the part. The part should never call this method! Definition at line 145 of file statusbarextension.cpp. |
|
Queries Convenience method. Definition at line 89 of file statusbarextension.cpp. References QObject::children(). |
The documentation for this class was generated from the following files: