rem: }
context: void KNMainWindow::setStatusMsg(const QString& text, int id){  statusBar()->clear();  if (text.isEmpty() && (id==SB_MAIN))    if (knGlobals.netAccess->currentMsg().isEmpty())      statusBar()->changeItem(i18n(" Ready"),SB_MAIN);    else      statusBar()->changeItem(knGlobals.netAccess->currentMsg(), SB_MAIN);   // restore the original message  else if ( id == SB_GROUP ) {    int statusWidth = s_tatusGroup->width();    QString mtext = text;    while (!mtext.isEmpty() && fontMetrics().width( mtext ) >= statusWidth) {      mtext.truncate( mtext.length() - 1);    }    s_tatusGroup->setText( mtext );  }  else {    statusBar()->changeItem(text, id);  }}