mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
cf17f68c6f
commit
277fe9488a
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user