From: Paul RASCLE Date: Fri, 4 Nov 2016 12:41:11 +0000 (+0100) Subject: test special interaction style X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fpre%2FV7_8_BR;p=modules%2Fgui.git test special interaction style --- diff --git a/src/SUIT/SUIT_ViewModel.cxx b/src/SUIT/SUIT_ViewModel.cxx index 5e74e75be..a7712fb70 100755 --- a/src/SUIT/SUIT_ViewModel.cxx +++ b/src/SUIT/SUIT_ViewModel.cxx @@ -51,15 +51,24 @@ SUIT_ViewModel::SUIT_ViewModel() SUIT_ViewModel::myButtonMap[STANDARD][FIT_AREA] = Qt::RightButton; // "key free" interaction style - SUIT_ViewModel::myStateMap[KEY_FREE][ZOOM] = Qt::NoModifier; - SUIT_ViewModel::myButtonMap[KEY_FREE][ZOOM] = Qt::RightButton; + SUIT_ViewModel::myStateMap[KEY_FREE][ZOOM] = Qt::ControlModifier; + SUIT_ViewModel::myButtonMap[KEY_FREE][ZOOM] = Qt::LeftButton; - SUIT_ViewModel::myStateMap[KEY_FREE][PAN] = Qt::NoModifier; - SUIT_ViewModel::myButtonMap[KEY_FREE][PAN] = Qt::MidButton; + SUIT_ViewModel::myStateMap[KEY_FREE][PAN] = Qt::AltModifier; + SUIT_ViewModel::myButtonMap[KEY_FREE][PAN] = Qt::LeftButton; - SUIT_ViewModel::myStateMap[KEY_FREE][ROTATE] = Qt::NoModifier; + SUIT_ViewModel::myStateMap[KEY_FREE][ROTATE] = Qt::ShiftModifier; SUIT_ViewModel::myButtonMap[KEY_FREE][ROTATE] = Qt::LeftButton; +// SUIT_ViewModel::myStateMap[KEY_FREE][ZOOM] = Qt::NoModifier; +// SUIT_ViewModel::myButtonMap[KEY_FREE][ZOOM] = Qt::RightButton; +// +// SUIT_ViewModel::myStateMap[KEY_FREE][PAN] = Qt::NoModifier; +// SUIT_ViewModel::myButtonMap[KEY_FREE][PAN] = Qt::MidButton; +// +// SUIT_ViewModel::myStateMap[KEY_FREE][ROTATE] = Qt::NoModifier; +// SUIT_ViewModel::myButtonMap[KEY_FREE][ROTATE] = Qt::LeftButton; + SUIT_ViewModel::myStateMap[KEY_FREE][FIT_AREA] = Qt::NoModifier; // unused SUIT_ViewModel::myButtonMap[KEY_FREE][FIT_AREA] = Qt::NoButton; // unused }