MCPcopy Create free account
hub / github.com/IgKh/katvan / toggleCursorMovementStyle

Method toggleCursorMovementStyle

shell/katvan_mainwindow.cpp:1032–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032void MainWindow::toggleCursorMovementStyle()
1033{
1034 if (d_editor->document()->defaultCursorMoveStyle() == Qt::LogicalMoveStyle) {
1035 d_editor->document()->setDefaultCursorMoveStyle(Qt::VisualMoveStyle);
1036 d_cursorStyleButton->setText(tr("Visual"));
1037 }
1038 else {
1039 d_editor->document()->setDefaultCursorMoveStyle(Qt::LogicalMoveStyle);
1040 d_cursorStyleButton->setText(tr("Logical"));
1041 }
1042}
1043
1044void MainWindow::showSettingsDialog()
1045{

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected