mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
* 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:
parent
cb45bc6a22
commit
214828d961
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user