Support completion in profile editor

Task-number: QTCREATORBUG-2110
This commit is contained in:
Jarek Kobus
2010-11-08 14:01:50 +01:00
parent a6e1c200dd
commit 371665446f
9 changed files with 456 additions and 128 deletions

View File

@@ -50,6 +50,7 @@
#include "qtoptionspage.h"
#include "externaleditors.h"
#include "gettingstartedwelcomepage.h"
#include "profilecompletion.h"
#include "qt-maemo/maemomanager.h"
#include "qt-s60/s60manager.h"
@@ -70,6 +71,7 @@
#include <coreplugin/editormanager/editormanager.h>
#include <texteditor/texteditoractionhandler.h>
#include <texteditor/texteditorconstants.h>
#include <texteditor/texteditorsettings.h>
#ifdef WITH_TESTS
# include <QTest>
@@ -164,6 +166,14 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
addAutoReleasedObject(new S60Manager);
addAutoReleasedObject(new MaemoManager);
ProFileCompletion *completion = new ProFileCompletion;
addAutoReleasedObject(completion);
// Set completion settings and keep them up to date
TextEditor::TextEditorSettings *textEditorSettings = TextEditor::TextEditorSettings::instance();
completion->setCompletionSettings(textEditorSettings->completionSettings());
connect(textEditorSettings, SIGNAL(completionSettingsChanged(TextEditor::CompletionSettings)),
completion, SLOT(setCompletionSettings(TextEditor::CompletionSettings)));
new ProFileCacheManager(this);
// TODO reenable