diff options
author | David Schulz <david.schulz@qt.io> | 2020-09-02 12:29:23 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-09-04 10:14:21 +0000 |
commit | dba4bff70344b5d601015ecdd80398affc4c4bcc (patch) | |
tree | d2f9637439357bffe0da619a488b9ce04eec104f /src/plugins/glsleditor | |
parent | 339db00f8563c7fc865a6166114e684021ac260e (diff) |
TextEditor: use Utils::FilePath as file member in AssistInterface
Change-Id: I3bf9b013b9350411f918efdb9d1a36a2c22bf972
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r-- | src/plugins/glsleditor/glslcompletionassist.cpp | 2 | ||||
-rw-r--r-- | src/plugins/glsleditor/glslcompletionassist.h | 2 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditor.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/glsleditor/glslcompletionassist.cpp b/src/plugins/glsleditor/glslcompletionassist.cpp index ef86585051..063562d207 100644 --- a/src/plugins/glsleditor/glslcompletionassist.cpp +++ b/src/plugins/glsleditor/glslcompletionassist.cpp @@ -547,7 +547,7 @@ bool GlslCompletionAssistProcessor::acceptsIdleEditor() const // ----------------------------- GlslCompletionAssistInterface::GlslCompletionAssistInterface(QTextDocument *textDocument, int position, - const QString &fileName, + const Utils::FilePath &fileName, AssistReason reason, const QString &mimeType, const Document::Ptr &glslDoc) diff --git a/src/plugins/glsleditor/glslcompletionassist.h b/src/plugins/glsleditor/glslcompletionassist.h index 90a09c108a..3e13da730d 100644 --- a/src/plugins/glsleditor/glslcompletionassist.h +++ b/src/plugins/glsleditor/glslcompletionassist.h @@ -108,7 +108,7 @@ class GlslCompletionAssistInterface : public TextEditor::AssistInterface { public: GlslCompletionAssistInterface(QTextDocument *textDocument, - int position, const QString &fileName, + int position, const Utils::FilePath &fileName, TextEditor::AssistReason reason, const QString &mimeType, const Document::Ptr &glslDoc); diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp index 1d290b2cf1..e00ce14c7b 100644 --- a/src/plugins/glsleditor/glsleditor.cpp +++ b/src/plugins/glsleditor/glsleditor.cpp @@ -371,7 +371,7 @@ AssistInterface *GlslEditorWidget::createAssistInterface( if (kind == Completion) return new GlslCompletionAssistInterface(document(), position(), - textDocument()->filePath().toString(), + textDocument()->filePath(), reason, textDocument()->mimeType(), m_glslDocument); |