diff options
author | hjk <hjk@theqtcompany.com> | 2016-06-09 15:26:33 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-06-10 06:56:55 +0000 |
commit | e2ba0aca9b39bd20db8a195ea495e8e53c2bb41e (patch) | |
tree | 89f349812c384b699f92919462423d011ddd25a4 /src/plugins/debugger/watchdata.h | |
parent | a823caa396c44f426a0eb284120de9675e3285d6 (diff) | |
download | qt-creator-e2ba0aca9b39bd20db8a195ea495e8e53c2bb41e.tar.gz |
Utils: Introduce a class template TypedTreeItem
For better typesafety on the user side (and optional) for items with uniformly
typed children. Use it for UniformTreeModels, and consequently WatchModel
to get rid of some of the static_casts there.
Change-Id: Ic20e507036e180c24997b236230f0f71b285202c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/debugger/watchdata.h')
-rw-r--r-- | src/plugins/debugger/watchdata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchdata.h b/src/plugins/debugger/watchdata.h index 654e92db54..e712b6d961 100644 --- a/src/plugins/debugger/watchdata.h +++ b/src/plugins/debugger/watchdata.h @@ -39,7 +39,7 @@ namespace Internal { class GdbMi; -class WatchItem : public Utils::TreeItem +class WatchItem : public Utils::TypedTreeItem<WatchItem> { public: WatchItem(); |