Don't use generic QSettings object.

We should always get the settings via Core interfaces to make sure it
will keep working as expected.

Change-Id: Ic3e68300ba2a2342a5d6e16ec6696710d7e6d98b
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Eike Ziller
2011-11-23 12:31:04 +01:00
committed by hjk
parent 2fc8c10b8f
commit e6ee3ca643
4 changed files with 31 additions and 25 deletions

View File

@@ -53,6 +53,7 @@
#include <aggregation/aggregate.h>
#include <coreplugin/findplaceholder.h>
#include <coreplugin/icore.h>
#include <coreplugin/minisplitter.h>
#include <find/basetextfind.h>
@@ -363,7 +364,8 @@ LogWindow::LogWindow(QWidget *parent)
m_commandEdit = new QLineEdit(this);
m_commandEdit->setFrame(false);
m_commandEdit->setObjectName("DebuggerInput");
m_commandEdit->setCompleter(new Utils::HistoryCompleter(m_commandEdit));
m_commandEdit->setCompleter(new Utils::HistoryCompleter(
Core::ICore::instance()->settings(), m_commandEdit));
QHBoxLayout *commandBox = new QHBoxLayout;
commandBox->addWidget(m_commandLabel);
commandBox->addWidget(m_commandEdit);