Skip to content
Snippets Groups Projects
Commit a62e94ca authored by Joseph Boudreau's avatar Joseph Boudreau
Browse files

Merge branch 'FixupIconizationKeyStrokesQt6' into 'main'

Changed the way in which volumes are iconized and/or saved, which no longer...

See merge request !273
parents c25e27a9 f5ff86ed
No related branches found
No related tags found
1 merge request!273Changed the way in which volumes are iconized and/or saved, which no longer...
Pipeline #6829502 passed with warnings
......@@ -761,10 +761,18 @@ void VP1GeometrySystem::userPickedNode(SoNode* , SoPath *pickedPath)
//of the inventor and Qt way
bool shift_isdown = (Qt::ShiftModifier & QApplication::keyboardModifiers());
// || ( m_d->kbEvent && (SO_KEY_PRESS_EVENT(m_d->kbEvent, SoKeyboardEvent::LEFT_SHIFT)||
// SO_KEY_PRESS_EVENT(m_d->kbEvent, SoKeyboardEvent::RIGHT_SHIFT)) ) );
bool ctrl_isdown = (Qt::ControlModifier & QApplication::keyboardModifiers());
bool alt_isdown = (Qt::AltModifier & QApplication::keyboardModifiers());
if (shift_isdown) {
if (ctrl_isdown && shift_isdown) {
//Volume should be put in ZAPPED state.
deselectAll();
volhandle->setState(VP1GeoFlags::ZAPPED);
message("===> Zapping Node: "+volhandle->getName());
return;
}
else if (shift_isdown) {
//Parent of volume should be put in CONTRACTED state.
deselectAll();
......@@ -774,11 +782,8 @@ void VP1GeometrySystem::userPickedNode(SoNode* , SoPath *pickedPath)
return;
}
bool ctrl_isdown = (Qt::ControlModifier & QApplication::keyboardModifiers());
// || ( m_d->kbEvent && (SO_KEY_PRESS_EVENT(m_d->kbEvent, SoKeyboardEvent::LEFT_CONTROL)||
// SO_KEY_PRESS_EVENT(m_d->kbEvent, SoKeyboardEvent::RIGHT_CONTROL)) ) );
if (ctrl_isdown) {
else if (ctrl_isdown) {
//Volume should be put in EXPANDED state if it has children.
deselectAll();
if (volhandle->nChildren()>0) {
......@@ -788,17 +793,8 @@ void VP1GeometrySystem::userPickedNode(SoNode* , SoPath *pickedPath)
return;
}
bool z_isdown = m_d->kbEvent && SO_KEY_PRESS_EVENT(m_d->kbEvent,SoKeyboardEvent::Z);
if (z_isdown) {
//Volume should be put in ZAPPED state.
deselectAll();
volhandle->setState(VP1GeoFlags::ZAPPED);
message("===> Zapping Node: "+volhandle->getName());
return;
}
bool s_isdown = m_d->kbEvent && SO_KEY_PRESS_EVENT(m_d->kbEvent,SoKeyboardEvent::S);
if (s_isdown) {
else if (alt_isdown) {
deselectAll();
#ifdef __APPLE__
char buffer[1024];
......
......@@ -224,7 +224,7 @@
<item>
<widget class="QLabel" name="label_11">
<property name="text">
<string>'z' + click: Iconify the volume</string>
<string>'Crtl/Cmd' + 'Shift' + click: Iconify the volume</string>
</property>
</widget>
</item>
......@@ -245,7 +245,7 @@
<item>
<widget class="QLabel" name="label_16">
<property name="text">
<string>'s' + click: Write volume</string>
<string>'Alt' + click: Write volume</string>
</property>
</widget>
</item>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment