From e4c15408defbb6ae46b81b90943bb56795e08875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 2 Jun 2017 13:14:05 +0200 Subject: Qt: Add version check for setTextInteractionFlags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This property was introduced in Qt 5.1. Change-Id: I3446886d65fbeaf011a69071b605b044e5205b60 Reviewed-on: https://code.wireshark.org/review/21895 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/qt/simple_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/qt/simple_dialog.cpp b/ui/qt/simple_dialog.cpp index 2de5a203ef..e1578ad026 100644 --- a/ui/qt/simple_dialog.cpp +++ b/ui/qt/simple_dialog.cpp @@ -90,7 +90,9 @@ SimpleDialog::SimpleDialog(QWidget *parent, ESD_TYPE_E type, int btn_mask, const g_free(vmessage); setTextFormat(Qt::PlainText); +#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) setTextInteractionFlags(Qt::TextSelectableByMouse); +#endif MessagePair msg_pair = splitMessage(message); // Remove leading and trailing whitespace along with excessive newline runs. -- cgit v1.2.1