diff options
author | Roland Knall <roland.knall@br-automation.com> | 2018-01-12 13:15:58 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2018-01-12 17:23:46 +0000 |
commit | 42100cb868eb3c50c7752f2adaf396bda6e894a1 (patch) | |
tree | d5062aa944b7024102ed896862b962c69364aa26 /ui/qt/models | |
parent | f98cf967bd38eb52a321321cb555c0c302a14318 (diff) |
Qt: add info for extcap disabled in main window.
Add an item to the end of the interface list, if the extcap
interfaces have been disabled.
Change-Id: I2643efb5dda9045e9e00fa3f815014f26a78085f
Reviewed-on: https://code.wireshark.org/review/25218
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/models')
-rw-r--r-- | ui/qt/models/info_proxy_model.cpp | 5 | ||||
-rw-r--r-- | ui/qt/models/info_proxy_model.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/models/info_proxy_model.cpp b/ui/qt/models/info_proxy_model.cpp index 1bc22678e4..4d61434687 100644 --- a/ui/qt/models/info_proxy_model.cpp +++ b/ui/qt/models/info_proxy_model.cpp @@ -30,6 +30,11 @@ void InfoProxyModel::appendInfo(QString info) infos_ << info; } +void InfoProxyModel::clearInfos() +{ + infos_.clear(); +} + int InfoProxyModel::rowCount(const QModelIndex &parent) const { return sourceModel()->rowCount(parent) + infos_.count(); diff --git a/ui/qt/models/info_proxy_model.h b/ui/qt/models/info_proxy_model.h index 470b11a0c3..72b36f85ee 100644 --- a/ui/qt/models/info_proxy_model.h +++ b/ui/qt/models/info_proxy_model.h @@ -34,6 +34,7 @@ public: virtual QModelIndex mapFromSource(const QModelIndex &fromIndex) const; void appendInfo(QString info); + void clearInfos(); private: |