Changeset View
Changeset View
Standalone View
Standalone View
addons/lumen/lumen.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
56 | { | 56 | { | ||
57 | connect(view->document(), &KTextEditor::Document::documentUrlChanged, | 57 | connect(view->document(), &KTextEditor::Document::documentUrlChanged, | ||
58 | this, &LumenPluginView::documentChanged, | 58 | this, &LumenPluginView::documentChanged, | ||
59 | Qt::UniqueConnection); | 59 | Qt::UniqueConnection); | ||
60 | connect(view->document(), &KTextEditor::Document::highlightingModeChanged, | 60 | connect(view->document(), &KTextEditor::Document::highlightingModeChanged, | ||
61 | this, &LumenPluginView::documentChanged, | 61 | this, &LumenPluginView::documentChanged, | ||
62 | Qt::UniqueConnection); | 62 | Qt::UniqueConnection); | ||
63 | 63 | | |||
64 | connect(view->document(), SIGNAL(documentUrlChanged(KTextEditor::Document*)), | 64 | connect(view->document(), &Document::documentUrlChanged, this, &LumenPluginView::urlChanged); | ||
65 | this, SLOT(urlChanged(KTextEditor::Document*))); | | |||
66 | | ||||
67 | registerCompletion(view); | 65 | registerCompletion(view); | ||
68 | } | 66 | } | ||
69 | 67 | | |||
70 | void LumenPluginView::viewDestroyed(QObject *view) | 68 | void LumenPluginView::viewDestroyed(QObject *view) | ||
71 | { | 69 | { | ||
72 | m_completionViews.remove(static_cast<KTextEditor::View *>(view)); | 70 | m_completionViews.remove(static_cast<KTextEditor::View *>(view)); | ||
73 | } | 71 | } | ||
74 | 72 | | |||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |