aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_stream_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-05-28 11:40:08 -0700
committerAnders Broman <a.broman58@gmail.com>2020-05-30 06:45:07 +0000
commit76d92ba7e76ef0714090770ff1ee79861716388c (patch)
treee8c9bf03c20164eab7f890d0b63606e057f6f337 /ui/qt/rtp_stream_dialog.cpp
parent3605bdc3232515d7e79c8ada86589ba518425870 (diff)
Qt: Updates for 5.15.
Fix the following deprecation issues for Qt 5.15: Use Qt::WindowFlags() instead of 0 in Qt >= 5.6. Pass Qt::SkipEmptyParts instead of QString::SkipEmptyParts to QString::split() in Qt >= 5.15. Use QMultiMap instead of QMap where we were using QMap::uniqeKeys(). Use QCP::Interactions() instead of 0. Use '\n' instead of QTextStream::endl. Use QWheelEvent::angleDelta() instead of QWheelEvent::angle(). Change-Id: Ie2d69d3a396c0821c2c34f506ddad6f8e22f7049 Reviewed-on: https://code.wireshark.org/review/37334 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/rtp_stream_dialog.cpp')
-rw-r--r--ui/qt/rtp_stream_dialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/rtp_stream_dialog.cpp b/ui/qt/rtp_stream_dialog.cpp
index 368af73f8f..d56f6eaf7b 100644
--- a/ui/qt/rtp_stream_dialog.cpp
+++ b/ui/qt/rtp_stream_dialog.cpp
@@ -470,7 +470,7 @@ void RtpStreamDialog::on_actionCopyAsCsv_triggered()
rdsl << v.toString();
}
}
- stream << rdsl.join(",") << endl;
+ stream << rdsl.join(",") << '\n';
}
wsApp->clipboard()->setText(stream.readAll());
}
@@ -479,11 +479,11 @@ void RtpStreamDialog::on_actionCopyAsYaml_triggered()
{
QString yaml;
QTextStream stream(&yaml, QIODevice::Text);
- stream << "---" << endl;
+ stream << "---" << '\n';
for (int row = -1; row < ui->streamTreeWidget->topLevelItemCount(); row ++) {
- stream << "-" << endl;
+ stream << "-" << '\n';
foreach (QVariant v, streamRowData(row)) {
- stream << " - " << v.toString() << endl;
+ stream << " - " << v.toString() << '\n';
}
}
wsApp->clipboard()->setText(stream.readAll());