diff options
author | hjk <qtc-committer@nokia.com> | 2010-06-16 11:08:54 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-22 10:59:57 +0200 |
commit | 6a6cba5518fb88345c53a7cd645f6cb6466a84e3 (patch) | |
tree | 88d7875ae5bd6f70a3654b11f80c6ed9b9685369 /src/plugins/debugger/cdb/cdboptionspage.cpp | |
parent | 4cc244469a4c7d9fb2b3e598727c6d8a2e7c1813 (diff) | |
download | qt-creator-6a6cba5518fb88345c53a7cd645f6cb6466a84e3.tar.gz |
debugger: The DebuggerEngine refactoring.
This replaces the (de facto) singleton engines and data handlers by classes
that are instantiated per run. The DebuggerRunControl will now create an
object of (a class derived from) DebuggerEngine that contains all the relevant
"dynamic" data.
DebuggerManager is no more. The "singleton" bits are merged into DebuggerPlugin,
whereas the data bits went to DebuggerEngine.
There is no formal notion of a "current" DebuggerEngine. However, as there's
only one DebuggerEngine at a time that has its data models connected to the
view, there's still some "de facto" notion of a "current" engine. Calling
SomeModel::setData(int role, QVariant data) with custom role is used as the
primary dispatch mechanism from the views to the "current" data models
(and the engine, as all data models know their engine).
Diffstat (limited to 'src/plugins/debugger/cdb/cdboptionspage.cpp')
-rw-r--r-- | src/plugins/debugger/cdb/cdboptionspage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/cdb/cdboptionspage.cpp b/src/plugins/debugger/cdb/cdboptionspage.cpp index 4804a242ae..93f068b529 100644 --- a/src/plugins/debugger/cdb/cdboptionspage.cpp +++ b/src/plugins/debugger/cdb/cdboptionspage.cpp @@ -138,9 +138,10 @@ QString CdbOptionsPageWidget::searchKeywords() const } // ---------- CdbOptionsPage -CdbOptionsPage::CdbOptionsPage(const QSharedPointer<CdbOptions> &options) : - m_options(options) +CdbOptionsPage::CdbOptionsPage() : + m_options(new CdbOptions) { + m_options->fromSettings(Core::ICore::instance()->settings()); } CdbOptionsPage::~CdbOptionsPage() |