forked from osmocom/wireshark
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:
parent
3eaa62dee6
commit
e4c15408de
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue