From: ouv Date: Tue, 9 Dec 2008 14:20:29 +0000 (+0000) Subject: Fixed bug IPAL20751 - DPE: "Enter" removes a value and name X-Git-Tag: TG_DumpPython_Extension_3_1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6689579502365eefda9b1fd0020bfe66cc3976ab;p=modules%2Fgui.git Fixed bug IPAL20751 - DPE: "Enter" removes a value and name --- diff --git a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx index fd7c139b0..446863fa2 100644 --- a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx +++ b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx @@ -676,7 +676,6 @@ SalomeApp_NoteBookDlg::SalomeApp_NoteBookDlg(QWidget * parent, _PTR(Study) theSt myRemoveButton = new QPushButton(tr("BUT_REMOVE")); aLayout->addWidget(myRemoveButton, 1, 0, 1, 1); - QSpacerItem* spacer = new QSpacerItem(DEFAULT_SPACING, 5 , QSizePolicy::Expanding, QSizePolicy::Minimum); aLayout->addItem(spacer, 1, 1, 2, 1); @@ -697,15 +696,28 @@ SalomeApp_NoteBookDlg::SalomeApp_NoteBookDlg(QWidget * parent, _PTR(Study) theSt myApplyBtn = new QPushButton(tr("BUT_APPLY")); aLayout1->addWidget(myApplyBtn, 0, 1, 1, 1); - myHelpBtn = new QPushButton(tr("BUT_HELP")); - aLayout1->addWidget(myHelpBtn, 0, 2, 1, 1); - + QSpacerItem* spacer1 = + new QSpacerItem(DEFAULT_SPACING, 5, QSizePolicy::Expanding, QSizePolicy::Minimum); + aLayout1->addItem(spacer1, 0, 2, 1, 1); myCancelBtn = new QPushButton(tr("BUT_CLOSE")); aLayout1->addWidget(myCancelBtn, 0, 3, 1, 1); + myHelpBtn = new QPushButton(tr("BUT_HELP")); + aLayout1->addWidget(myHelpBtn, 0, 4, 1, 1); + aLayout->addWidget(groupBox, 2, 0, 1, 3); + QWidgetList aWidgetList; + aWidgetList.append( myTable ); + aWidgetList.append( myOkBtn ); + aWidgetList.append( myApplyBtn ); + aWidgetList.append( myCancelBtn ); + aWidgetList.append( myHelpBtn ); + aWidgetList.append( myUpdateStudyBtn ); + aWidgetList.append( myRemoveButton ); + Qtx::setTabOrder( aWidgetList ); + connect( myOkBtn, SIGNAL(clicked()), this, SLOT(onOK()) ); connect( myApplyBtn, SIGNAL(clicked()), this, SLOT(onApply()) ); connect( myCancelBtn, SIGNAL(clicked()), this, SLOT(onCancel()) );