mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Whitespace only.
This commit is contained in:
parent
4b64aaf4ce
commit
fd4645c912
@ -56,7 +56,7 @@ FuncRequest::FuncRequest(FuncCode act, string const & arg, Origin o)
|
||||
FuncRequest::FuncRequest(FuncCode act, int ax, int ay,
|
||||
mouse_button::state but, KeyModifier modifier, Origin o)
|
||||
: action_(act), origin_(o), x_(ax), y_(ay), button_(but),
|
||||
modifier_(modifier)
|
||||
modifier_(modifier)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1175,7 +1175,7 @@ void Server::callback(string const & msg)
|
||||
// connect to the lyxfunc in the single GuiView we
|
||||
// support currently. (Lgb)
|
||||
|
||||
FuncRequest fr(lyxaction.lookupFunc(cmd), from_ascii(arg));
|
||||
FuncRequest fr(lyxaction.lookupFunc(cmd), from_ascii(arg));
|
||||
fr.setOrigin(FuncRequest::LYXSERVER);
|
||||
DispatchResult dr;
|
||||
theApp()->dispatch(fr, dr);
|
||||
|
@ -802,7 +802,7 @@ void GuiWorkArea::mousePressEvent(QMouseEvent * e)
|
||||
if (d->dc_event_.active && d->dc_event_ == *e) {
|
||||
d->dc_event_.active = false;
|
||||
FuncRequest cmd(LFUN_MOUSE_TRIPLE, e->x(), e->y(),
|
||||
q_button_state(e->button()), q_key_state(e->modifiers()));
|
||||
q_button_state(e->button()), q_key_state(e->modifiers()));
|
||||
d->dispatch(cmd);
|
||||
e->accept();
|
||||
return;
|
||||
@ -813,7 +813,7 @@ void GuiWorkArea::mousePressEvent(QMouseEvent * e)
|
||||
#endif
|
||||
|
||||
FuncRequest const cmd(LFUN_MOUSE_PRESS, e->x(), e->y(),
|
||||
q_button_state(e->button()), q_key_state(e->modifiers()));
|
||||
q_button_state(e->button()), q_key_state(e->modifiers()));
|
||||
d->dispatch(cmd);
|
||||
|
||||
// Save the context menu on mouse press, because also the mouse
|
||||
@ -834,7 +834,7 @@ void GuiWorkArea::mouseReleaseEvent(QMouseEvent * e)
|
||||
d->synthetic_mouse_event_.timeout.stop();
|
||||
|
||||
FuncRequest const cmd(LFUN_MOUSE_RELEASE, e->x(), e->y(),
|
||||
q_button_state(e->button()), q_key_state(e->modifiers()));
|
||||
q_button_state(e->button()), q_key_state(e->modifiers()));
|
||||
d->dispatch(cmd);
|
||||
e->accept();
|
||||
}
|
||||
@ -845,7 +845,7 @@ void GuiWorkArea::mouseMoveEvent(QMouseEvent * e)
|
||||
// we kill the triple click if we move
|
||||
doubleClickTimeout();
|
||||
FuncRequest cmd(LFUN_MOUSE_MOTION, e->x(), e->y(),
|
||||
q_motion_state(e->buttons()), q_key_state(e->modifiers()));
|
||||
q_motion_state(e->buttons()), q_key_state(e->modifiers()));
|
||||
|
||||
e->accept();
|
||||
|
||||
@ -1106,9 +1106,8 @@ void GuiWorkArea::mouseDoubleClickEvent(QMouseEvent * ev)
|
||||
{
|
||||
d->dc_event_ = DoubleClick(ev);
|
||||
QTimer::singleShot(QApplication::doubleClickInterval(), this,
|
||||
SLOT(doubleClickTimeout()));
|
||||
FuncRequest cmd(LFUN_MOUSE_DOUBLE,
|
||||
ev->x(), ev->y(),
|
||||
SLOT(doubleClickTimeout()));
|
||||
FuncRequest cmd(LFUN_MOUSE_DOUBLE, ev->x(), ev->y(),
|
||||
q_button_state(ev->button()), q_key_state(ev->modifiers()));
|
||||
d->dispatch(cmd);
|
||||
ev->accept();
|
||||
|
Loading…
Reference in New Issue
Block a user