StelObjectMgr.cpp   StelObjectMgr.cpp 
skipping to change at line 55 skipping to change at line 55
*************************************************************************/ *************************************************************************/
void StelObjectMgr::handleMouseClicks(QMouseEvent* event) void StelObjectMgr::handleMouseClicks(QMouseEvent* event)
{ {
// Deselect the selected object // Deselect the selected object
if (event->button()==Qt::RightButton && event->type()==QEvent::Mouse ButtonRelease) if (event->button()==Qt::RightButton && event->type()==QEvent::Mouse ButtonRelease)
{ {
unSelect(); unSelect();
event->accept(); event->accept();
return; return;
} }
StelMovementMgr* mvmgr = (StelMovementMgr*)GETSTELMODULE("StelMoveme ntMgr"); StelMovementMgr* mvmgr = GETSTELMODULE(StelMovementMgr);
if (event->button()==Qt::LeftButton && event->type()==QEvent::MouseB uttonRelease && !mvmgr->getHasDragged()) if (event->button()==Qt::LeftButton && event->type()==QEvent::MouseB uttonRelease && !mvmgr->getHasDragged())
{ {
#ifdef MACOSX #ifdef MACOSX
// CTRL + left clic = right clic for 1 button mouse // CTRL + left clic = right clic for 1 button mouse
if (event->modifiers().testFlag(Qt::ControlModifier)) if (event->modifiers().testFlag(Qt::ControlModifier))
{ {
unSelect(); unSelect();
event->accept(); event->accept();
return; return;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/