From 6689579502365eefda9b1fd0020bfe66cc3976ab Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 9 Dec 2008 14:20:29 +0000 Subject: [PATCH] Fixed bug IPAL20751 - DPE: "Enter" removes a value and name --- src/SalomeApp/SalomeApp_NoteBookDlg.cxx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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()) ); -- 2.39.2