handle transparent pixmaps

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6634 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-29 16:43:40 +00:00
parent cf17f68c6f
commit 277fe9488a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-03-29 John Levon <levon@movementarian.org>
* QBrowseBox.C: handle transparent pixmaps
2003-03-29 John Levon <levon@movementarian.org>
* QBrowseBox.h:

View File

@ -80,7 +80,9 @@ void QBrowseBox::insertItem(QPixmap pixmap)
for (int row = 0; row < numRows(); ++row) {
for (int col = 0; col < numCols(); ++col) {
QPixmap small(w,h);
bitBlt(&small,0,0,&pixmap,col*w,row*h,w,h,Qt::CopyROP,false);
small.fill(backgroundColor());
bitBlt(&small, 0, 0, &pixmap, col * w, row * h,
w, h, Qt::CopyROP, false);
insertItem(small, row, col);
}
}