diff options
author | Gerald Combs <gerald@wireshark.org> | 2020-03-02 12:40:50 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2020-03-03 06:19:02 +0000 |
commit | 4a2cd15aa5c4cdd64aa24dcbdbc8b3d2d234c3f4 (patch) | |
tree | 81ba21a8c1c5c94e8d93a054bde8c28e0e625ecd /ui/qt/extcap_argument.cpp | |
parent | fb28b60e3f739dc805d1b7cefa3d62f6a9b8478f (diff) |
Qt: Fill in our item delegate editor backgrounds.
As the documentation for QAbstractItemDelegate::createEditor says,
"The view's background will shine through unless the editor paints its
own background (e.g., with setAutoFillBackground())."
Set setAutoFillBackground(true) for a bunch of our editors where the
underlying widget's background was showing.
Change-Id: I77e96548e99c74a73c89f8037c1f894a6a5584f1
Reviewed-on: https://code.wireshark.org/review/36260
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/extcap_argument.cpp')
-rw-r--r-- | ui/qt/extcap_argument.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/extcap_argument.cpp b/ui/qt/extcap_argument.cpp index 0e274435f7..e7e5f4a736 100644 --- a/ui/qt/extcap_argument.cpp +++ b/ui/qt/extcap_argument.cpp @@ -65,6 +65,7 @@ QWidget * ExtArgTimestamp::createEditor(QWidget * parent) tsBox = new QDateTimeEdit(ts, parent); tsBox->setDisplayFormat(QLocale::system().dateTimeFormat()); tsBox->setCalendarPopup(true); + tsBox->setAutoFillBackground(true); if (_argument->tooltip != NULL) tsBox->setToolTip(QString().fromUtf8(_argument->tooltip)); |