mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +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>
|
2004-08-12 Kornel Benko <kornel.benko@berlin.de>
|
||||||
|
|
||||||
* QPrefs.C (setComboxFont): Use fromqstr() instead of latin1() for
|
* QPrefs.C (setComboxFont): Use fromqstr() instead of latin1() for
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
|
extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <qapplication.h>
|
||||||
|
|
||||||
using std::distance;
|
using std::distance;
|
||||||
using std::make_pair;
|
using std::make_pair;
|
||||||
using std::string;
|
using std::string;
|
||||||
@ -62,7 +64,6 @@ pair<int, QLPopupMenu *>
|
|||||||
createMenu(QMenuData * parent, MenuItem const * item, QLMenubar * owner,
|
createMenu(QMenuData * parent, MenuItem const * item, QLMenubar * owner,
|
||||||
bool is_toplevel)
|
bool is_toplevel)
|
||||||
{
|
{
|
||||||
// FIXME: leaks ??
|
|
||||||
QLPopupMenu * pm = new QLPopupMenu(owner, item->submenuname(), is_toplevel);
|
QLPopupMenu * pm = new QLPopupMenu(owner, item->submenuname(), is_toplevel);
|
||||||
int const id = parent->insertItem(toqstr(getLabel(*item)), pm);
|
int const id = parent->insertItem(toqstr(getLabel(*item)), pm);
|
||||||
return make_pair(id, pm);
|
return make_pair(id, pm);
|
||||||
@ -82,6 +83,7 @@ QLPopupMenu::QLPopupMenu(QLMenubar * owner,
|
|||||||
|
|
||||||
void QLPopupMenu::fire(int index)
|
void QLPopupMenu::fire(int index)
|
||||||
{
|
{
|
||||||
|
qApp->processEvents();
|
||||||
owner_->view()->activated(funcs_[index]);
|
owner_->view()->activated(funcs_[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user