| 389 | } |
| 390 | |
| 391 | void SessionManager::loadEditorViewDetails(ScintillaNext *editor, QSettings &settings) |
| 392 | { |
| 393 | const int firstVisibleLine = settings.value("FirstVisibleLine").toInt() - 1; |
| 394 | const int currentPosition = settings.value("CurrentPosition").toInt(); |
| 395 | |
| 396 | editor->setFirstVisibleLine(firstVisibleLine); |
| 397 | editor->setEmptySelection(currentPosition); |
| 398 | |
| 399 | if (settings.contains("BookMarks")) |
| 400 | { |
| 401 | QList<int> bookMarkedLines = QVariantListToQList(settings.value("BookMarks").toList()); // just using .value<QList<int>>() does not work...possibly a Qt bug? |
| 402 | |
| 403 | BookMarkDecorator *decorator = editor->findChild<BookMarkDecorator*>(QString(), Qt::FindDirectChildrenOnly); |
| 404 | decorator->setBookMarkedLines(bookMarkedLines); |
| 405 | } |
| 406 | } |
nothing calls this directly
no test coverage detected