Qt: Add version check for setTextInteractionFlags

This property was introduced in Qt 5.1.

Change-Id: I3446886d65fbeaf011a69071b605b044e5205b60
Reviewed-on: https://code.wireshark.org/review/21895
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Stig Bjørlykke 2017-06-02 13:14:05 +02:00 committed by Michael Mann
parent 3eaa62dee6
commit e4c15408de
1 changed files with 2 additions and 0 deletions

View File

@ -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.