From 385af3481fbec5a6eb95b900023876821e0c3936 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 17 Dec 2009 10:12:24 +0000 Subject: [PATCH] Debug --- src/SalomeApp/SalomeApp_NoteBookDlg.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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() ) ); -- 2.39.2