From 73af3effa98cdd508c19efd2d37172949643d961 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 28 Jun 2005 09:11:46 +0000 Subject: [PATCH] Define the default icon for the application --- src/Session/SALOME_Session_Server.cxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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; } }; -- 2.39.2