org.kde.koala
public class KStatusBar extends QStatusBar
See Also: KActionCollection
UNKNOWN: %KDE statusbar widget.
Constructor Summary | |
---|---|
protected | KStatusBar(Class dummy) |
KStatusBar(QWidget parent, String name)
Constructs a status bar. | |
KStatusBar(QWidget parent) | |
KStatusBar() |
Method Summary | |
---|---|
void | changeItem(String text, int id)
Changes the text in a status bar field.
|
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | hasItem(int id)
Returns true if an item with id exists already in KStatusBar,
otherwise returns false. |
void | insertFixedItem(String text, int id, boolean permanent)
Inserts a fixed width text label into status bar. |
void | insertFixedItem(String text, int id) |
void | insertItem(String text, int id, int stretch, boolean permanent)
Inserts a text label into the status bar.
|
void | insertItem(String text, int id, int stretch) |
void | insertItem(String text, int id) |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
void | removeItem(int id)
Removes an item. |
void | setItemAlignment(int id, int align)
Sets the alignment of item id. By default all fields are aligned
AlignHCenter | AlignVCenter. See QLabel.setAlignment for details. |
void | setItemFixed(int id, int width)
Sets item id to have fixed width. |
void | setItemFixed(int id) |
parent
is usually KMainWindow.UNKNOWN: Constructs a status bar.
Parameters: text The label's text string id The id of item.
UNKNOWN: Changes the text in a status bar field.
id
exists already in KStatusBar,
otherwise returns false.Parameters: id id of the item
UNKNOWN:
text
, but will remain fixed even if you change text.
You can change fixed width by calling setItemFixed.Parameters: text The label's text string id id of item permanent permanent flag passed to QStatusBar.addWidget
UNKNOWN: Inserts a fixed width text label into status bar.
stretch
and permanent
are passed to
QStatusBar.addWidget .
If permanent
is true, then item will be placed on the far right of
the statusbar and will never be hidden by QStatusBar.message.Parameters: text The label's text string. id id of item stretch stretch passed to QStatusBar.addWidget permanent is item permanent or not (passed to QStatusBar.addWidget )
See Also: org.kde.qt.QStatusbar#addWidget
UNKNOWN: Inserts a text label into the status bar.
Parameters: id The item to remove.
UNKNOWN: Removes an item.
id.
By default all fields are aligned
AlignHCenter
| AlignVCenter.
See QLabel.setAlignment for details.UNKNOWN: Sets the alignment of item id.
id
to have fixed width. This cannot be undone, but you can
always set new fixed width.Parameters: id id of item width fixed width in pixels. Default -1 is to adapt to text width.
UNKNOWN: Sets item id
to have fixed width.