comparison Applications/Qt/QCairoWidget.cpp @ 1199:922d2e61aa5d

RadiograpyScene: can now remove any layer + new key wrappers for Delete/Backspace
author Alain Mazy <alain@mazy.be>
date Thu, 28 Nov 2019 18:28:15 +0100
parents fe938bddb932
children 771913258728 0ca50d275b9a
comparison
equal deleted inserted replaced
1197:a34ba19d2060 1199:922d2e61aa5d
183 CASE_QT_KEY_TO_ORTHANC(Qt::Key_Right, KeyboardKeys_Right); 183 CASE_QT_KEY_TO_ORTHANC(Qt::Key_Right, KeyboardKeys_Right);
184 default: 184 default:
185 break; 185 break;
186 } 186 }
187 } 187 }
188 else if (keyChar == 127)
189 {
190 switch (event->key())
191 {
192 CASE_QT_KEY_TO_ORTHANC(Qt::Key_Delete, KeyboardKeys_Delete);
193 CASE_QT_KEY_TO_ORTHANC(Qt::Key_Backspace, KeyboardKeys_Backspace);
194 default:
195 break;
196 }
197 }
188 198
189 { 199 {
190 OrthancStone::NativeStoneApplicationContext::GlobalMutexLocker locker(*context_); 200 OrthancStone::NativeStoneApplicationContext::GlobalMutexLocker locker(*context_);
191 locker.GetCentralViewport().KeyPressed(keyType, keyChar, stoneModifiers); 201 locker.GetCentralViewport().KeyPressed(keyType, keyChar, stoneModifiers);
192 } 202 }