From 6552270524a4ffaf814423b5cd49e94222e80d5b Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 23 Nov 2005 09:26:35 +0000 Subject: [PATCH] no message --- src/Qtx/QtxWorkstack.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index b2fa2b9bd..d48823096 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -4,6 +4,7 @@ #include "QtxWorkstack.h" #include +#include #include #include #include @@ -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() ); -- 2.39.2