aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/tcp_stream_dialog.cpp
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2018-04-05 15:12:39 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2018-04-05 18:48:57 +0000
commit3a928f1f879cfc63580181a316229733f8b81b0e (patch)
treeed3cb6334edf78751cceadd4702234b1727fec94 /ui/qt/tcp_stream_dialog.cpp
parentc4da7ed843527ac75bc46d74e43de1b61fa5c5f5 (diff)
Qt: Remove checks for version below 5.2
This stops the main source from being buildable by Qt 4.x Change-Id: I61edbae04ac2b3bf0ae8ee8e09d335083945c176 Reviewed-on: https://code.wireshark.org/review/26756 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui/qt/tcp_stream_dialog.cpp')
-rw-r--r--ui/qt/tcp_stream_dialog.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/qt/tcp_stream_dialog.cpp b/ui/qt/tcp_stream_dialog.cpp
index cd70c9a26c..60c1cb80fd 100644
--- a/ui/qt/tcp_stream_dialog.cpp
+++ b/ui/qt/tcp_stream_dialog.cpp
@@ -270,9 +270,7 @@ TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_ty
// Duplicate ACK Graph - displays duplicate ack ticks
// QCustomPlot doesn't have QCPScatterStyle::ssTick so we have to make our own.
int tick_len = 3;
-#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
tick_len *= devicePixelRatio();
-#endif
QPixmap da_tick_pm = QPixmap(1, tick_len * 2);
da_tick_pm.fill(Qt::transparent);
QPainter painter(&da_tick_pm);