diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-10-25 12:18:36 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-10-25 14:12:56 +0200 |
commit | c2705f1595f2b1db5d886b6d11e256f2322b96f4 (patch) | |
tree | 67a371ba574bb8c1806140658b39ed7fba29e42a /src/plugins/debugger/debuggerkitinformation.h | |
parent | 1567f4729f879b117bfaad74df90fd0214bf0dae (diff) | |
download | qt-creator-c2705f1595f2b1db5d886b6d11e256f2322b96f4.tar.gz |
DebuggerItem: Make sure DebuggerItems have an Id
The default constructor now sets an id on debuggerItem. fromMap was
removed and a new constructor (taking a const QVariantMap &) was
added in place of that.
There are no more friends on the DebuggerItem class since those were
only necessary to make sure the item has an Id when it gets added.
Change-Id: Ia1a6c9ffea67a8e0a1e5685ef93f67df8686d4c9
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/debugger/debuggerkitinformation.h')
-rw-r--r-- | src/plugins/debugger/debuggerkitinformation.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/debugger/debuggerkitinformation.h b/src/plugins/debugger/debuggerkitinformation.h index dfdf6350a4..4a185d79e3 100644 --- a/src/plugins/debugger/debuggerkitinformation.h +++ b/src/plugins/debugger/debuggerkitinformation.h @@ -50,13 +50,13 @@ class DEBUGGER_EXPORT DebuggerItem { public: DebuggerItem(); + DebuggerItem(const QVariantMap &data); bool canClone() const { return true; } bool isValid() const; QString engineTypeName() const; QVariantMap toMap() const; - void fromMap(const QVariantMap &data); void reinitializeFromFile(); QVariant id() const { return m_id; } @@ -83,10 +83,6 @@ public: QStringList abiNames() const; private: - friend class Debugger::Internal::DebuggerItemModel; - friend class DebuggerItemManager; - void setId(const QVariant &id); - QVariant m_id; QString m_displayName; DebuggerEngineType m_engineType; |