* fix drag pixmap

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23751 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-15 02:42:48 +00:00
parent cb45bc6a22
commit 214828d961

View File

@ -1468,11 +1468,10 @@ void DragTabBar::mouseMoveEvent(QMouseEvent * event)
drag->setMimeData(mimeData);
#if QT_VERSION >= 0x040300
// FIXME: gives garbage for tab != 0.
// get tab pixmap as cursor
QRect r = tabRect(tab);
QPixmap pixmap(r.size());
render(&pixmap, r.topLeft());
render(&pixmap, - r.topLeft());
drag->setPixmap(pixmap);
#endif