Skip to content

Commit

Permalink
Merge branch 'master' into inf_fix_meshtopology_init
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod authored Jan 8, 2025
2 parents 81da121 + 0bc3fb9 commit 24b053d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Sofa/GUI/Qt/src/sofa/gui/qt/GraphListenerQListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ QPixmap* getPixmap(core::objectmodel::Base* obj, bool haveInfo, bool haveWarning
if(haveErrors)
flags |= 1 << (4) ;


static std::map<unsigned int, QPixmap*> pixmaps;
if (!pixmaps.count(flags))
{
Expand Down Expand Up @@ -236,10 +235,10 @@ QPixmap* getPixmap(core::objectmodel::Base* obj, bool haveInfo, bool haveWarning
flags |= 1 << (ALLCOLORS+1) ;

if(haveWarning)
flags |= 1 << (ALLCOLORS+1) ;
flags |= 1 << (ALLCOLORS+2) ;

if(haveErrors)
flags |= 1 << (ALLCOLORS+1) ;
flags |= 1 << (ALLCOLORS+3) ;

static std::map<unsigned int, QPixmap*> pixmaps;
if (!pixmaps.count(flags))
Expand All @@ -249,10 +248,8 @@ QPixmap* getPixmap(core::objectmodel::Base* obj, bool haveInfo, bool haveWarning
if (flags & (1<<i))
++nc;
const int nx = 2+iconWidth*nc+iconMargin;
//QImage * img = new QImage(nx,iconHeight,32);
QImage * img = new QImage(nx,iconHeight,QImage::Format_ARGB32);

//img->setAlphaBuffer(true);
img->fill(qRgba(0,0,0,0));
// Workaround for qt 3.x where fill() does not set the alpha channel
for (int y=0 ; y < iconHeight ; y++)
Expand Down

0 comments on commit 24b053d

Please sign in to comment.