void KWindowInfo::showMessage( QWidget *window, const QString &text, int timeout ) { KWindowInfo *info = new KWindowInfo( window ); info->autoDel = true; info->message( text, timeout ); if ( timeout == 0 ) delete info; }
void KWindowInfo::showMessage( QWidget *window, const QString &text, const QPixmap &pix, int timeout ) { KWindowInfo *info = new KWindowInfo( window ); info->autoDel = true; info->message( text, pix, timeout ); }