rem: QHBoxLayout *hbl = new QHBoxLayout( layout );
add: QHBoxLayout *hbl = new QHBoxLayout( layout, marginHint() );
context:     KNoteEditDlg( QWidget *parent = 0, const char *name = 0 )      : KDialogBase( Plain, i18n( "Edit Note" ), Ok | Cancel, Ok,                     parent, name, true, true )    {      // this dialog is modal to prevent one from editing the same note twice in two      // different windows      setInstance( new KInstance( "knotes" ) ); // TODO: hm, memleak??      setXMLFile( "knotesui.rc" );      actionCollection()->setWidget( this );      QWidget *page = plainPage();      QVBoxLayout *layout = new QVBoxLayout( page );      QHBoxLayout *hbl = new QHBoxLayout( layout );      QLabel *label = new QLabel( page);      label->setText( i18n( "Name:" ) );      hbl->addWidget( label,0 );      mTitleEdit= new KLineEdit( page, "name" );      hbl->addWidget( mTitleEdit, 1,Qt::AlignVCenter  );//      layout->addLayout( hbl);            mNoteEdit = new KNoteEdit( actionCollection(), page );      mNoteEdit->setFocus();      KXMLGUIBuilder builder( page );      KXMLGUIFactory factory( &builder, this );      factory.addClient( this );      mTool = static_cast<KToolBar *>(factory.container( "note_tool", this ));      layout->addWidget( mTool );      layout->addWidget( mNoteEdit );    }