diff options
author | Roland Knall <rknall@gmail.com> | 2019-06-28 12:37:02 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-06-28 17:16:09 +0000 |
commit | 8e80415aaff15ea68a1aea106cbfc43347fa86af (patch) | |
tree | 6a5fe2e8461d69b18c3567c28cdeced43fb0f85e /ui/qt/rtp_stream_dialog.cpp | |
parent | 41d0cf7320540f5d81d5837dca2ef40dd3eadf16 (diff) |
Qt: Fix 5.13 deprecated warnings
With Qt 5.13 some methods are deprecated. Fixing those warnings
Change-Id: Ia290f06f2b681de1d5b437624de77d8a5c2f5266
Reviewed-on: https://code.wireshark.org/review/33761
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/rtp_stream_dialog.cpp')
-rw-r--r-- | ui/qt/rtp_stream_dialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/qt/rtp_stream_dialog.cpp b/ui/qt/rtp_stream_dialog.cpp index 9d14788cae..519509358c 100644 --- a/ui/qt/rtp_stream_dialog.cpp +++ b/ui/qt/rtp_stream_dialog.cpp @@ -110,9 +110,15 @@ public: if (calc.problem) { setText(status_col_, UTF8_BULLET); setTextAlignment(status_col_, Qt::AlignCenter); + QColor bgColor(ws_css_warn_background); + QColor textColor(ws_css_warn_text); for (int i = 0; i < columnCount(); i++) { - setBackgroundColor(i, ws_css_warn_background); - setTextColor(i, ws_css_warn_text); + QBrush bgBrush = background(i); + bgBrush.setColor(bgColor); + setBackground(i, bgBrush); + QBrush fgBrush = foreground(i); + fgBrush.setColor(textColor); + setForeground(i, fgBrush); } } |