diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-03-13 08:24:35 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-03-13 09:37:15 +0000 |
commit | 5d217530a171a666ba5530675785e9463f2e20f6 (patch) | |
tree | c5e42b3598662876a260630b812cdf1819826e3a /ui/qt | |
parent | 9e82cffeea10fce62cdfc49cec3b9e3794ac04bf (diff) | |
download | wireshark-5d217530a171a666ba5530675785e9463f2e20f6.tar.gz |
Qt: Use em dash when hide the "Show" checkbox
Match the style used in "Capture Interfaces" table when elements
are N/A by using the em dash. This item should also be disabled
using QPalette::Disabled to get a even better match.
Change-Id: I127ce309318df2c36515996df8584d1e4ce690c0
Reviewed-on: https://code.wireshark.org/review/20527
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/interface_tree_cache_model.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/interface_tree_cache_model.cpp b/ui/qt/interface_tree_cache_model.cpp index 07c9423652..9d1706f7f2 100644 --- a/ui/qt/interface_tree_cache_model.cpp +++ b/ui/qt/interface_tree_cache_model.cpp @@ -29,6 +29,7 @@ #include "qt_ui_utils.h" #include "ui/capture_globals.h" +#include "wsutil/utf8_entities.h" #include "wiretap/wtap.h" @@ -485,7 +486,7 @@ QVariant InterfaceTreeCacheModel::data(const QModelIndex &index, int role) const if ( role == Qt::CheckStateRole ) return QVariant(); else if ( role == Qt::DisplayRole ) - return QString("-"); + return QString(UTF8_EM_DASH); } if ( row < sourceModel->rowCount() ) |