diff options
author | hjk <hjk121@nokiamail.com> | 2014-10-01 22:39:47 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-10-06 22:32:48 +0200 |
commit | 1f65111e55b3e487289ff7a0dfbd4313c383d77f (patch) | |
tree | c68d02e06a8c95ee85ec267b409eccc0d6797dbe /src/plugins/qmakeprojectmanager/profilehoverhandler.h | |
parent | 5bb8134ec135eae72d738220d2acd037d00cafbf (diff) | |
download | qt-creator-1f65111e55b3e487289ff7a0dfbd4313c383d77f.tar.gz |
TextEditor: Move CompletionAssistProvider construction
... to the editor factories and pass it to the document, not the widget.
Saves some code, puts fewer objects into the object pool.
Change-Id: Iaaf250af74dc4e0c62700873accbb40ba88b7d9e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/profilehoverhandler.h')
-rw-r--r-- | src/plugins/qmakeprojectmanager/profilehoverhandler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qmakeprojectmanager/profilehoverhandler.h b/src/plugins/qmakeprojectmanager/profilehoverhandler.h index 864604405b..47b2741046 100644 --- a/src/plugins/qmakeprojectmanager/profilehoverhandler.h +++ b/src/plugins/qmakeprojectmanager/profilehoverhandler.h @@ -31,6 +31,7 @@ #define PROFILEHOVERHANDLER_H #include <texteditor/basehoverhandler.h> +#include <texteditor/codeassist/keywordscompletionassist.h> QT_BEGIN_NAMESPACE class QUrl; @@ -44,7 +45,7 @@ class ProFileHoverHandler : public TextEditor::BaseHoverHandler Q_OBJECT public: - ProFileHoverHandler(); + explicit ProFileHoverHandler(const TextEditor::Keywords &keywords); signals: void creatorHelpRequested(const QUrl &url); @@ -65,7 +66,7 @@ private: QString m_docFragment; ManualKind m_manualKind; - TextEditor::Keywords m_keywords; + const TextEditor::Keywords m_keywords; }; } // namespace Internal |