From: stv Date: Wed, 30 Aug 2006 09:01:50 +0000 (+0000) Subject: Module icons in toolbar enlarged for 20 x 20. X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=17653278743a4f044ff53b7b99657ea97f0d5a47;p=modules%2Fgui.git Module icons in toolbar enlarged for 20 x 20. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 3bd917e34..52e1bc610 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -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 );