diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2015-02-14 18:49:36 +0100 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2015-02-21 17:20:16 +0000 |
commit | 9ad00fdcb809971ce76487679bfdedbd73433a94 (patch) | |
tree | e96e0d3ce9108b8375bf33c827d2165885ede5a5 | |
parent | 8e43698b52e2e04cea55aa83ea8ab4c11de399d1 (diff) |
Qt: Fix for QT < 4.8
QApplication::queryKeyboardModifiers() was introduced in 4.8.
Try to be compatibile with my old Qt 4.7.2.
Change-Id: Ie4abdd397cf2f10bb50132b09fed198d30425ee7
Reviewed-on: https://code.wireshark.org/review/7289
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
-rw-r--r-- | ui/qt/proto_tree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 8b40452c6b..992e78b5c5 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -455,7 +455,11 @@ void ProtoTree::itemDoubleClick(QTreeWidgetItem *item, int column) { fi = item->data(0, Qt::UserRole).value<field_info *>(); if(fi->hfinfo->type == FT_FRAMENUM) { +#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0) if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) { +#else + if (QApplication::keyboardModifiers() & Qt::ShiftModifier) { +#endif emit openPacketInNewWindow(true); } else { emit goToPacket(fi->value.value.uinteger); |