From: vsr Date: Wed, 4 Jul 2007 13:07:11 +0000 (+0000) Subject: Porting to Qt 4 X-Git-Tag: qt4_porting_delivery_220807~123 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=136528957cd59a3a73027836d8765004576b2b62;p=modules%2Fgui.git Porting to Qt 4 --- diff --git a/src/Qtx/QtxActionToolMgr.cxx b/src/Qtx/QtxActionToolMgr.cxx index b4eb75794..e0b7fbd29 100644 --- a/src/Qtx/QtxActionToolMgr.cxx +++ b/src/Qtx/QtxActionToolMgr.cxx @@ -119,6 +119,7 @@ int QtxActionToolMgr::createToolBar( const QString& title, const int tid ) tb = new QtxToolBar( true, mainWindow() ); mainWindow()->addToolBar( tb ); tb->setWindowTitle( title ); + tb->setObjectName( title ); } tInfo.toolBar = tb; diff --git a/src/Qtx/QtxResourceMgr.cxx b/src/Qtx/QtxResourceMgr.cxx index c61a96bda..51411bfa4 100644 --- a/src/Qtx/QtxResourceMgr.cxx +++ b/src/Qtx/QtxResourceMgr.cxx @@ -1802,10 +1802,9 @@ void QtxResourceMgr::setValue( const QString& sect, const QString& name, const Q QStringList lst; for ( int i = 0; i < val.size(); i++ ) { - ::sprintf( buf, "#%02X", val.at( i ) ); + ::sprintf( buf, "#%02X", (unsigned char)val.at( i ) ); lst.append( QString( buf ) ); } - setResource( sect, name, lst.join( " " ) ); }