#include <kstatusbar.h>
Public Types | |
| enum | BarStatus |
Signals | |
| void | pressed (int) |
| void | released (int) |
Public Methods | |
| KStatusBar (QWidget *parent=0L, const char *name=0L) | |
| ~KStatusBar () | |
| void | insertItem (const QString &text, int id, int stretch=0, bool permanent=false) |
| void | insertFixedItem (const QString &text, int id, bool permanent=false) |
| void | removeItem (int id) |
| void | changeItem (const QString &text, int id) |
| void | setItemAlignment (int id, int align) |
| void | setItemFixed (int id, int width=-1) |
Display status messages.
You can insert text labels or custom widgets. Their geometry is managed internally. KStatusBar resizes itself, but positioning is left to KMainWindow (or to you, if you don't use KMainWindow ).
A special type of item is a message which is a temporary text-message displayed on top of other items in full-width. Messages are visible for specified time, or until you call the slot QStatusBar::clear(). See QStatusBar::message for details.
KStatusBar inherits QStatusBar, you can freely use all QStatusBar methods.
Empty text items are not visible. They will become visible when you change (add) text.
Definition at line 81 of file kstatusbar.h.
|
|
WARNING: This enum is only for backward compatibility and it may be removed. No method here uses it. Definition at line 90 of file kstatusbar.h. |
|
||||||||||||
|
Constructs a status bar. |
|
|
Destructor. Deletes all internal objects. |
|
||||||||||||
|
Changes the text in a status bar field. The item will be resized to fit the text. If you change text to be empty, item will not be visible (untill you add some text).
|
|
||||||||||||||||
|
Inserts a fixed width text label into status bar. The width will be set according to
Definition at line 128 of file kstatusbar.h. References insertItem(), and setItemFixed(). |
|
||||||||||||||||||||
|
Inserts a text label into the status bar. Paremeters
If
Referenced by insertFixedItem(). |
|
|
Emitted when mouse is pressed over item Connect to this signal if you want to respond to mouse press events. |
|
|
Emitted when mouse is released over item Connect to this signal if you want to respond to mouse release events (clicks). |
|
|
Removes an item.
|
|
||||||||||||
|
Sets the alignment of item |
|
||||||||||||
|
Sets item
Referenced by insertFixedItem(). |
1.2.18