Changeset View
Changeset View
Standalone View
Standalone View
addons/rustcompletion/kterustcompletion.h
Show All 28 Lines | |||||
29 | class KTERustCompletionPlugin; | 29 | class KTERustCompletionPlugin; | ||
30 | 30 | | |||
31 | namespace KTextEditor { | 31 | namespace KTextEditor { | ||
32 | class Document; | 32 | class Document; | ||
33 | class View; | 33 | class View; | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | struct CompletionMatch { | 36 | struct CompletionMatch { | ||
37 | CompletionMatch() : type(KTextEditor::CodeCompletionModel::NoProperty), depth(0), line(-1), col(-1) {} | 37 | CompletionMatch() = default; | ||
38 | QString text; | 38 | QString text; | ||
39 | QIcon icon; | 39 | QIcon icon; | ||
40 | KTextEditor::CodeCompletionModel::CompletionProperty type; | 40 | KTextEditor::CodeCompletionModel::CompletionProperty type = KTextEditor::CodeCompletionModel::NoProperty; | ||
41 | int depth; | 41 | int depth = 0; | ||
42 | QUrl url; | 42 | QUrl url; | ||
43 | int line; | 43 | int line = -1; | ||
44 | int col; | 44 | int col = -1; | ||
45 | }; | 45 | }; | ||
46 | 46 | | |||
47 | class KTERustCompletion : public KTextEditor::CodeCompletionModel, public KTextEditor::CodeCompletionModelControllerInterface | 47 | class KTERustCompletion : public KTextEditor::CodeCompletionModel, public KTextEditor::CodeCompletionModelControllerInterface | ||
48 | { | 48 | { | ||
49 | Q_OBJECT | 49 | Q_OBJECT | ||
50 | 50 | | |||
51 | Q_INTERFACES(KTextEditor::CodeCompletionModelControllerInterface) | 51 | Q_INTERFACES(KTextEditor::CodeCompletionModelControllerInterface) | ||
52 | 52 | | |||
Show All 29 Lines |