forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user