Salome HOME
no message
authorstv <stv@opencascade.com>
Wed, 23 Nov 2005 09:26:35 +0000 (09:26 +0000)
committerstv <stv@opencascade.com>
Wed, 23 Nov 2005 09:26:35 +0000 (09:26 +0000)
src/Qtx/QtxWorkstack.cxx

index b2fa2b9bd431bd38bef2d7c11deac132cd0e0d45..d48823096c25d10a0fb12e9460e7fe7bd4399e00 100644 (file)
@@ -4,6 +4,7 @@
 #include "QtxWorkstack.h"
 
 #include <qstyle.h>
+#include <qimage.h>
 #include <qaction.h>
 #include <qlayout.h>
 #include <qpixmap.h>
@@ -1428,7 +1429,11 @@ void QtxWorkstackArea::updateTab( QWidget* wid )
 
   QIconSet icoSet;
   if ( wid->icon() )
-    icoSet = QIconSet( *wid->icon() );
+  {
+    QPixmap pix = *wid->icon();
+    pix.convertFromImage( pix.convertToImage().smoothScale( pix.width(), 16, QImage::ScaleMin ) );
+    icoSet = QIconSet( pix );
+  }
 
   tab->setIconSet( icoSet );
   tab->setText( wid->caption() );