mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
try to repaint window correctly when dispatching loooong commands
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8906 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
395daa5611
commit
122ca8287f
@ -1,3 +1,9 @@
|
||||
2004-08-13 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* QLPopupMenu.C (fire): make Qt process events before we
|
||||
dispatch our function (toolbars still do not get repainted
|
||||
correctly, though)
|
||||
|
||||
2004-08-12 Kornel Benko <kornel.benko@berlin.de>
|
||||
|
||||
* QPrefs.C (setComboxFont): Use fromqstr() instead of latin1() for
|
||||
|
@ -28,6 +28,8 @@
|
||||
extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
|
||||
#endif
|
||||
|
||||
#include <qapplication.h>
|
||||
|
||||
using std::distance;
|
||||
using std::make_pair;
|
||||
using std::string;
|
||||
@ -62,7 +64,6 @@ pair<int, QLPopupMenu *>
|
||||
createMenu(QMenuData * parent, MenuItem const * item, QLMenubar * owner,
|
||||
bool is_toplevel)
|
||||
{
|
||||
// FIXME: leaks ??
|
||||
QLPopupMenu * pm = new QLPopupMenu(owner, item->submenuname(), is_toplevel);
|
||||
int const id = parent->insertItem(toqstr(getLabel(*item)), pm);
|
||||
return make_pair(id, pm);
|
||||
@ -82,6 +83,7 @@ QLPopupMenu::QLPopupMenu(QLMenubar * owner,
|
||||
|
||||
void QLPopupMenu::fire(int index)
|
||||
{
|
||||
qApp->processEvents();
|
||||
owner_->view()->activated(funcs_[index]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user