From: vsr Date: Tue, 28 Jun 2005 09:11:46 +0000 (+0000) Subject: Define the default icon for the application X-Git-Tag: T3_0_0_a4~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73af3effa98cdd508c19efd2d37172949643d961;p=modules%2Fgui.git Define the default icon for the application --- diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 2b2405e81..b52c9b040 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -127,6 +127,29 @@ void MessageOutput( QtMsgType type, const char* msg ) } } +/* XPM */ +static const char* pixmap_not_found_xpm[] = { +"16 16 3 1", +" c None", +". c #000000", +"+ c #A80000", +" ", +" ", +" . . ", +" .+. .+. ", +" .+++. .+++. ", +" .+++.+++. ", +" .+++++. ", +" .+++. ", +" .+++++. ", +" .+++.+++. ", +" .+++. .+++. ", +" .+. .+. ", +" . . ", +" ", +" ", +" "}; + class SALOME_Session : public SUIT_Session { public: @@ -140,6 +163,8 @@ protected: resMgr->setVersion( salomeVersion() ); resMgr->setCurrentFormat( "xml" ); resMgr->setOption( "translators", QString( "%P_msg_%L.qm|%P_icons.qm|%P_images.qm" ) ); + static QPixmap defaultPixmap( pixmap_not_found_xpm ); + resMgr->setDefaultPixmap( defaultPixmap ); return resMgr; } };