src/main.cpp

changeset 367
df61cd3d5ab4
parent 363
16f5dcfa7c9f
child 368
9444de9762c3
equal deleted inserted replaced
366:ea656dead697 367:df61cd3d5ab4
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;

mercurial