aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp
diff options
context:
space:
mode:
authorDaniel Teske <qt@squorn.de>2015-10-05 17:33:09 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-04-25 11:53:13 +0000
commitba73d97852f919d5466b086a5836dcf15cb9c933 (patch)
tree5b72e845ee16be142e19ae34dcfeaa2501d1cfab /src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp
parentfb52d9e419a683e14f49e5bf9d6ed015028a34b8 (diff)
Add path completion to .pro and CMakeLists.txt editors
Finished-by: Christian Kandeler <christian.kandeler@qt.io> Fixes: QTCREATORBUG-5915 Change-Id: Ic5cdcbf33252ddab10c247439c06b0c1e35bef0d Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp b/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp
index 6d3ef82933..ba2c902f0c 100644
--- a/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp
@@ -55,6 +55,7 @@ CMakeFileCompletionAssist::CMakeFileCompletionAssist() :
KeywordsCompletionAssistProcessor(Keywords())
{
setSnippetGroup(Constants::CMAKE_SNIPPETS_GROUP_ID);
+ setDynamicCompletionFunction(&TextEditor::pathComplete);
}
IAssistProposal *CMakeFileCompletionAssist::perform(const AssistInterface *interface)