Fixed cmake problem (kdev4pythoncompletion was not installed) · mcanes/kdevelop-python@2445548 · GitHub
Skip to content

Commit 2445548

Browse files
committed
Fixed cmake problem (kdev4pythoncompletion was not installed)
1 parent 738bbc9 commit 2445548

9 files changed

Lines changed: 37 additions & 5 deletions

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion

‎codecompletion/CMakeLists.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include_directories(
2-
${CMAKE_CURRENT_BINRAY_DIR}
2+
${CMAKE_CURRENT_BINARY_DIR}
33
${CMAKE_CURRENT_SOURCE_DIR}
44
)
55

@@ -16,4 +16,4 @@ target_link_libraries(kdev4pythoncompletion
1616
${KDEVPLATFORM_LANGUAGE_LIBRARIES}
1717
)
1818

19-
install(TARGETS ${kdev4pythoncompletion} DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
19+
install(TARGETS kdev4pythoncompletion DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})

‎codecompletion/pythoncodecompletioncontext.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
using namespace KDevelop;
88

9+
namespace Python {
10+
911
QList<CompletionTreeItemPointer> PythonCodeCompletionContext::completionItems(bool& abort, bool fullCompletion)
1012
{
1113
QList<CompletionTreeItemPointer> items;
@@ -16,3 +18,4 @@ QList<CompletionTreeItemPointer> PythonCodeCompletionContext::completionItems(bo
1618
return items;
1719
}
1820

21+
}

‎codecompletion/pythoncodecompletioncontext.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
#define PYTHONCODECOMPLETIONCONTEXT_H
33

44
#include <language/codecompletion/codecompletioncontext.h>
5+
#include "pythoncompletionexport.h"
56

7+
namespace Python {
68

7-
class PythonCodeCompletionContext : public KDevelop::CodeCompletionContext
9+
class KDEVPYTHONCOMPLETION_EXPORT PythonCodeCompletionContext : public KDevelop::CodeCompletionContext
810
{
911

1012
public:
1113
virtual QList< KDevelop::CompletionTreeItemPointer > completionItems(bool& abort, bool fullCompletion = true);
1214
};
1315

16+
}
17+
1418
#endif // PYTHONCODECOMPLETIONCONTEXT_H

‎codecompletion/pythoncodecompletionmodel.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include "pythoncodecompletionworker.h"
33
#include "ktexteditor/view.h"
44

5+
namespace Python {
6+
57
PythonCodeCompletionModel::PythonCodeCompletionModel(QObject* parent)
68
: CodeCompletionModel(parent)
79
{
@@ -20,3 +22,5 @@ KDevelop::CodeCompletionWorker* PythonCodeCompletionModel::createCompletionWorke
2022
{
2123
return new PythonCodeCompletionWorker(this);
2224
}
25+
26+
}

‎codecompletion/pythoncodecompletionmodel.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <language/duchain/duchainpointer.h>
66
#include "pythoncompletionexport.h"
77

8+
namespace Python {
9+
810
class KDEVPYTHONCOMPLETION_EXPORT PythonCodeCompletionModel : public KDevelop::CodeCompletionModel
911
{
1012

@@ -16,4 +18,6 @@ class KDEVPYTHONCOMPLETION_EXPORT PythonCodeCompletionModel : public KDevelop::C
1618
KTextEditor::Range completionRange(KTextEditor::View* view, const KTextEditor::Cursor &position);
1719
};
1820

21+
}
22+
1923
#endif // PYTHONCODECOMPLETIONMODEL_H

‎codecompletion/pythoncodecompletionworker.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include "pythoncodecompletionworker.h"
22
#include "pythoncodecompletionmodel.h"
33

4+
5+
namespace Python {
6+
47
PythonCodeCompletionWorker::PythonCodeCompletionWorker(PythonCodeCompletionModel *parent)
58
: KDevelop::CodeCompletionWorker(parent)
69
{
@@ -11,3 +14,6 @@ KDevelop::CodeCompletionContext* PythonCodeCompletionWorker::createCompletionCon
1114
{
1215
return KDevelop::CodeCompletionWorker::createCompletionContext(context, contextText, followingText, position);
1316
}
17+
18+
19+
}

‎codecompletion/pythoncodecompletionworker.h‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
#include "pythoncodecompletionmodel.h"
55
#include <language/codecompletion/codecompletionworker.h>
66
#include <language/codecompletion/codecompletionitem.h>
7+
#include "pythoncompletionexport.h"
78

8-
class PythonCodeCompletionWorker : public KDevelop::CodeCompletionWorker
9+
namespace Python {
10+
11+
class KDEVPYTHONCOMPLETION_EXPORT PythonCodeCompletionWorker : public KDevelop::CodeCompletionWorker
912
{
1013

1114
public:
@@ -14,3 +17,5 @@ class PythonCodeCompletionWorker : public KDevelop::CodeCompletionWorker
1417
};
1518

1619
#endif // PYTHONCODECOMPLETIONWORKER_H
20+
21+
}

‎pythonlanguagesupport.cpp‎

Lines changed: 6 additions & 0 deletions

0 commit comments

Comments
 (0)