Changeset View
Changeset View
Standalone View
Standalone View
autotests/src/vimode/base.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 89 | { | |||
---|---|---|---|---|---|
102 | kate_view->setInputMode(View::ViInputMode); | 102 | kate_view->setInputMode(View::ViInputMode); | ||
103 | Q_ASSERT(kate_view->currentInputMode()->viewInputMode() == KTextEditor::View::ViInputMode); | 103 | Q_ASSERT(kate_view->currentInputMode()->viewInputMode() == KTextEditor::View::ViInputMode); | ||
104 | vi_input_mode = dynamic_cast<KateViInputMode *>(kate_view->currentInputMode()); | 104 | vi_input_mode = dynamic_cast<KateViInputMode *>(kate_view->currentInputMode()); | ||
105 | vi_input_mode_manager = vi_input_mode->viInputModeManager(); | 105 | vi_input_mode_manager = vi_input_mode->viInputModeManager(); | ||
106 | Q_ASSERT(vi_input_mode_manager); | 106 | Q_ASSERT(vi_input_mode_manager); | ||
107 | vi_global = vi_input_mode->globalState(); | 107 | vi_global = vi_input_mode->globalState(); | ||
108 | Q_ASSERT(vi_global); | 108 | Q_ASSERT(vi_global); | ||
109 | kate_document->config()->setShowSpaces(KateDocumentConfig::Trailing); // Flush out some issues in the KateRenderer when rendering spaces. | 109 | kate_document->config()->setShowSpaces(KateDocumentConfig::Trailing); // Flush out some issues in the KateRenderer when rendering spaces. | ||
110 | kate_view->config()->setScrollBarMiniMap(false); | 110 | kate_view->config()->setValue(KateViewConfig::ShowScrollBarMiniMap, false); | ||
111 | kate_view->config()->setScrollBarPreview(false); | 111 | kate_view->config()->setValue(KateViewConfig::ShowScrollBarPreview, false); | ||
112 | 112 | | |||
113 | connect(kate_document, &KTextEditor::DocumentPrivate::textInserted, | 113 | connect(kate_document, &KTextEditor::DocumentPrivate::textInserted, | ||
114 | this, &BaseTest::textInserted); | 114 | this, &BaseTest::textInserted); | ||
115 | connect(kate_document, &KTextEditor::DocumentPrivate::textRemoved, | 115 | connect(kate_document, &KTextEditor::DocumentPrivate::textRemoved, | ||
116 | this, &BaseTest::textRemoved); | 116 | this, &BaseTest::textRemoved); | ||
117 | } | 117 | } | ||
118 | 118 | | |||
119 | void BaseTest::TestPressKey(const QString &str) | 119 | void BaseTest::TestPressKey(const QString &str) | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |