]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Module icons in toolbar enlarged for 20 x 20.
authorstv <stv@opencascade.com>
Wed, 30 Aug 2006 09:01:50 +0000 (09:01 +0000)
committerstv <stv@opencascade.com>
Wed, 30 Aug 2006 09:01:50 +0000 (09:01 +0000)
src/LightApp/LightApp_Application.cxx

index 3bd917e346eec6d7a435878b1491baf7d2cf908a..52e1bc61058b8a6cc3ce52a0a012073d17044dd2 100644 (file)
@@ -565,6 +565,9 @@ void LightApp_Application::createActions()
       icon = modIcon;
 
     icon.convertFromImage( icon.convertToImage().smoothScale( iconSize, iconSize, QImage::ScaleMin ) );
+    QPixmap blank = SUIT_Tools::transparentPixmap( 20, 20 );
+    icon = SUIT_Tools::composite( icon, ( blank.width() - icon.width() ) / 2,
+                                  ( blank.height() - icon.height() ) / 2, blank );
 
     QAction* a = createAction( -1, *it, icon, *it, tr( "PRP_MODULE" ).arg( *it ), 0, desk, true );
     a->addTo( modTBar );