From: ouv Date: Thu, 17 Dec 2009 10:12:24 +0000 (+0000) Subject: Debug X-Git-Tag: PHASE_17_Part1_V4~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=385af3481fbec5a6eb95b900023876821e0c3936;p=modules%2Fgui.git Debug --- diff --git a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx index f42aa8ac6..fd35915e8 100644 --- a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx +++ b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx @@ -428,8 +428,14 @@ void NoteBook_Table::updateValues() bool isValid = myNoteBook->isValid( aName ); markRow( aRow, isValid ); - QString aValue = myNoteBook->get( aName ).toString(); - aRow->setValue( isValid ? aValue : QString::null ); + QVariant aValue = myNoteBook->get( aName ); + QString aValueStr = aValue.toString(); + if( isValid && aValue.type() == QVariant::Bool ) + { // replace "true" with "True" and "false" with "False" + QString aFirstChar = aValueStr.left( 1 ); + aValueStr.replace( 0, 1, aFirstChar.toUpper() ); + } + aRow->setValue( isValid ? aValueStr : QString::null ); } } blockSignals( isBlocked ); @@ -842,11 +848,11 @@ SalomeApp_NoteBookDlg::SalomeApp_NoteBookDlg( QWidget* parent, SalomeApp_Study* QWidgetList aWidgetList; aWidgetList.append( myTable ); + aWidgetList.append( aCloseBtn ); + aWidgetList.append( aHelpBtn ); aWidgetList.append( aRemoveBtn ); aWidgetList.append( aDumpBtn ); aWidgetList.append( anUpdateStudyBtn ); - aWidgetList.append( aCloseBtn ); - aWidgetList.append( aHelpBtn ); Qtx::setTabOrder( aWidgetList ); connect( aRemoveBtn, SIGNAL( clicked() ), this, SLOT( onRemove() ) );