671 data->canvas->update(); |
671 data->canvas->update(); |
672 } |
672 } |
673 }); |
673 }); |
674 } |
674 } |
675 ); |
675 ); |
|
676 QObject::connect( |
|
677 state.mainWindow.actionDelete, |
|
678 &QAction::triggered, |
|
679 [&state]{ |
|
680 QTextCursor cursor = state.mainWindow.modelEdit->textCursor(); |
|
681 cursor.removeSelectedText(); |
|
682 } |
|
683 ); |
676 restoreSettings(&state); |
684 restoreSettings(&state); |
677 updateRenderPreferences(&state.mainWindow, &state.renderPreferences, &state.documents); |
685 updateRenderPreferences(&state.mainWindow, &state.renderPreferences, &state.documents); |
678 const int result = app.exec(); |
686 const int result = app.exec(); |
679 saveSettings(&state); |
687 saveSettings(&state); |
680 return result; |
688 return result; |