#include <kwindowinfo.h>
Public Slots | |
| void | message (const QString &text) |
| void | message (const QString &text, const QPixmap &pix) |
| void | message (const QString &text, int timeout) |
| void | message (const QString &text, const QPixmap &pix, int timeout) |
| void | permanent (const QString &text) |
| void | permanent (const QString &text, const QPixmap &pix) |
Public Methods | |
| KWindowInfo (QWidget *parent, const char *name=0) | |
| virtual | ~KWindowInfo () |
| bool | autoDelete () const |
| void | setAutoDelete (bool enable) |
Static Public Methods | |
| void | showMessage (QWidget *window, const QString &text, int timeout=-1) |
| void | showMessage (QWidget *window, const QString &text, const QPixmap &pix, int timeout=-1) |
Protected Slots | |
| virtual void | save () |
| virtual void | restore () |
Protected Methods | |
| virtual void | display (const QString &text, const QPixmap &pix) |
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.
Definition at line 40 of file kwindowinfo.h.
|
||||||||||||
|
Creates a KWindowInfo with the specified parent. |
|
|
Cleans up. |
|
|
Returns true iff the object should delete itself when it resets. Definition at line 58 of file kwindowinfo.h. |
|
||||||||||||
|
Displays the message in the titlebar/icon. |
|
||||||||||||||||
|
Shows the specified icon and text in the window title and WM icon, for the specified time. The time is a delay specified in milliseconds, or one of the two special values. The special values are -1 which means the default timeout should be used, and 0 which means the message is permanent. |
|
||||||||||||
|
Shows the specified text in the window title for the specified time. |
|
||||||||||||
|
Shows the specified text in the window title, and sets the window icon. |
|
|
Shows the specified text in the window title. |
|
||||||||||||
|
Shows the specified text and icon in the window title with no timeout. |
|
|
Shows the specified text in the window title with no timeout. |
|
|
Resets the window title and icon to the saved values. If auto-delete is enabled then the object is deleted. |
|
|
Saves the window title and icon. |
|
|
Set to true if you want the object to delete itself when the message timeout occurs. Definition at line 64 of file kwindowinfo.h. |
|
||||||||||||||||||||
|
Utility method to display a title bar message and icon for the specified window. |
|
||||||||||||||||
|
Utility method to display a title bar message for the specified window. |
1.2.18