mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* show context menu at the right position
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22881 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
767fd1d6ae
commit
357b4f8603
@ -544,10 +544,7 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e)
|
|||||||
}
|
}
|
||||||
// Position the menu to the right.
|
// Position the menu to the right.
|
||||||
// FIXME: menu position should be different for RTL text.
|
// FIXME: menu position should be different for RTL text.
|
||||||
pos.rx() += menu->width();
|
menu->exec(e->globalPos());
|
||||||
// FIXME: correct vertical position of the menu WRT screen espace.
|
|
||||||
//pos.ry() += menu->height();
|
|
||||||
menu->exec(pos);
|
|
||||||
e->accept();
|
e->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user