From 136528957cd59a3a73027836d8765004576b2b62 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 4 Jul 2007 13:07:11 +0000 Subject: [PATCH] Porting to Qt 4 --- src/Qtx/QtxActionToolMgr.cxx | 1 + src/Qtx/QtxResourceMgr.cxx | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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( " " ) ); } -- 2.39.2