Blame wireshark-0008-qt5-includes.patch

Michal Ruprich 816b14
From ea197d88a3e85ff238ffebda28baadc36dc34b7d Mon Sep 17 00:00:00 2001
Michal Ruprich 816b14
From: =?utf8?q?Jo=C3=A3o=20Valverde?= <joao.valverde@tecnico.ulisboa.pt>
Michal Ruprich 816b14
Date: Fri, 1 Jun 2018 16:15:47 +0100
Michal Ruprich 816b14
Subject: [PATCH] Fix compilation with Qt 5.11
Michal Ruprich 816b14
MIME-Version: 1.0
Michal Ruprich 816b14
Content-Type: text/plain; charset=utf8
Michal Ruprich 816b14
Content-Transfer-Encoding: 8bit
Michal Ruprich 816b14
Michal Ruprich 816b14
On my system (Arch Linux) with Qt 5.11 these includes are required
Michal Ruprich 816b14
to avoid undefined declarations.
Michal Ruprich 816b14
Michal Ruprich 816b14
Change-Id: Iffb0aa4d867ea55cf4a5e8fe7df9a6264c5b3be3
Michal Ruprich 816b14
Reviewed-on: https://code.wireshark.org/review/27947
Michal Ruprich 816b14
Petri-Dish: João Valverde <j@v6e.pt>
Michal Ruprich 816b14
Reviewed-by: Roland Knall <rknall@gmail.com>
Michal Ruprich 816b14
Tested-by: Petri Dish Buildbot
Michal Ruprich 816b14
Reviewed-by: João Valverde <j@v6e.pt>
Michal Ruprich 816b14
---
Michal Ruprich 816b14
 ui/qt/packet_format_group_box.cpp | 1 +
Michal Ruprich 816b14
 ui/qt/time_shift_dialog.cpp       | 3 +++
Michal Ruprich 816b14
 ui/qt/wireless_frame.cpp          | 1 +
Michal Ruprich 816b14
 3 files changed, 5 insertions(+)
Michal Ruprich 816b14
Michal Ruprich 816b14
diff --git a/ui/qt/packet_format_group_box.cpp b/ui/qt/packet_format_group_box.cpp
Michal Ruprich 816b14
index a80a71a..3c0fff2 100644
Michal Ruprich 816b14
--- a/ui/qt/packet_format_group_box.cpp
Michal Ruprich 816b14
+++ b/ui/qt/packet_format_group_box.cpp
Michal Ruprich 816b14
@@ -10,6 +10,7 @@
Michal Ruprich 816b14
 #include <ui_packet_format_group_box.h>
Michal Ruprich 816b14
 
Michal Ruprich 816b14
 #include <QStyle>
Michal Ruprich 816b14
+#include <QStyleOption>
Michal Ruprich 816b14
 
Michal Ruprich 816b14
 PacketFormatGroupBox::PacketFormatGroupBox(QWidget *parent) :
Michal Ruprich 816b14
     QGroupBox(parent),
Michal Ruprich 816b14
diff --git a/ui/qt/time_shift_dialog.cpp b/ui/qt/time_shift_dialog.cpp
Michal Ruprich 816b14
index 93882c0..7906bd2 100644
Michal Ruprich 816b14
--- a/ui/qt/time_shift_dialog.cpp
Michal Ruprich 816b14
+++ b/ui/qt/time_shift_dialog.cpp
Michal Ruprich 816b14
@@ -14,6 +14,9 @@
Michal Ruprich 816b14
 #include <ui/time_shift.h>
Michal Ruprich 816b14
 #include <ui/qt/utils/tango_colors.h>
Michal Ruprich 816b14
 
Michal Ruprich 816b14
+#include <QStyle>
Michal Ruprich 816b14
+#include <QStyleOption>
Michal Ruprich 816b14
+
Michal Ruprich 816b14
 
Michal Ruprich 816b14
 TimeShiftDialog::TimeShiftDialog(QWidget *parent, capture_file *cf) :
Michal Ruprich 816b14
     QDialog(parent),
Michal Ruprich 816b14
diff --git a/ui/qt/wireless_frame.cpp b/ui/qt/wireless_frame.cpp
Michal Ruprich 816b14
index bd9076a..46fb2dd 100644
Michal Ruprich 816b14
--- a/ui/qt/wireless_frame.cpp
Michal Ruprich 816b14
+++ b/ui/qt/wireless_frame.cpp
Michal Ruprich 816b14
@@ -23,6 +23,7 @@
Michal Ruprich 816b14
 #include <wsutil/frequency-utils.h>
Michal Ruprich 816b14
 
Michal Ruprich 816b14
 #include <QProcess>
Michal Ruprich 816b14
+#include <QAbstractItemView>
Michal Ruprich 816b14
 
Michal Ruprich 816b14
 // To do:
Michal Ruprich 816b14
 // - Disable or hide invalid channel types.
Michal Ruprich 816b14
-- 
Michal Ruprich 816b14
2.7.4