]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Define the default icon for the application
authorvsr <vsr@opencascade.com>
Tue, 28 Jun 2005 09:11:46 +0000 (09:11 +0000)
committervsr <vsr@opencascade.com>
Tue, 28 Jun 2005 09:11:46 +0000 (09:11 +0000)
src/Session/SALOME_Session_Server.cxx

index 2b2405e815aba4e40394e51b4c67c24fb920c623..b52c9b040d2a28d7cd15082dc7950df4a6ab52a3 100755 (executable)
@@ -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;
   }
 };