org.kde.koala
public class KWindowInfo extends QObject
KWindowInfo.showMessage( this, "Message Body" );
This more complex example changes the window icon, as well as
displaying the text. In addition, this example overrides the
default timeout to ensure the message is only displayed for 1
second.
QPixmap px;
px.load( "lo16-app-logtracker.png" );
KWindowInfo.showMessage( this, "Message Body", px, 1000 );
If the parent window inherits KSystemTray then KWindowInfo changes the
pixmap and tooltip of the system window to display the message.
UNKNOWN: Displays messages in the window icon and title.
| Constructor Summary | |
|---|---|
| protected | KWindowInfo(Class dummy) |
| KWindowInfo(QWidget parent, String name)
Creates a KWindowInfo with the specified parent. | |
| KWindowInfo(QWidget parent) | |
| Method Summary | |
|---|---|
| boolean | autoDelete()
Returns true iff the object should delete itself when it resets. |
| String | className() |
| protected void | display(String text, QPixmap pix)
Displays the message in the titlebar/icon. |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| protected void | finalize() Deletes the wrapped C++ instance |
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| void | message(String text)
Shows the specified text in the window title. |
| void | message(String text, QPixmap pix)
Shows the specified text in the window title, and sets the window icon. |
| void | message(String text, int timeout)
Shows the specified text in the window title for the specified time. |
| void | message(String text, QPixmap pix, int timeout)
Shows the specified icon and text in the window title and WM
icon, for the specified time. |
| QMetaObject | metaObject() |
| void | permanent(String text)
Shows the specified text in the window title with no timeout. |
| void | permanent(String text, QPixmap pix)
Shows the specified text and icon in the window title with no timeout. |
| protected void | restore()
Resets the window title and icon to the saved values. |
| protected void | save()
Saves the window title and icon. |
| void | setAutoDelete(boolean enable)
Set to true if you want the object to delete itself when the message
timeout occurs. |
| static void | showMessage(QWidget window, String text, int timeout)
Utility method to display a title bar message for the specified
window. |
| static void | showMessage(QWidget window, String text) |
| static void | showMessage(QWidget window, String text, QPixmap pix, int timeout)
Utility method to display a title bar message and icon for the
specified window. |
| static void | showMessage(QWidget window, String text, QPixmap pix) |
UNKNOWN: Creates a KWindowInfo with the specified parent.
UNKNOWN: Returns true iff the object should delete itself when it resets.
UNKNOWN: Displays the message in the titlebar/icon.
UNKNOWN: Shows the specified text in the window title.
UNKNOWN: Shows the specified text in the window title, and sets the window icon.
UNKNOWN: Shows the specified text in the window title for the specified time.
UNKNOWN: Shows the specified icon and text in the window title and WM icon, for the specified time.
UNKNOWN: Shows the specified text in the window title with no timeout.
UNKNOWN: Shows the specified text and icon in the window title with no timeout.
UNKNOWN: Resets the window title and icon to the saved values.
UNKNOWN: Saves the window title and icon.
UNKNOWN: Set to true if you want the object to delete itself when the message timeout occurs.
UNKNOWN: Utility method to display a title bar message for the specified window.
UNKNOWN: Utility method to display a title bar message and icon for the specified window.