diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-04-25 08:18:05 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-04-25 08:06:21 +0000 |
commit | f9f2b84e658b8ce64553f9b9df3a37acaa2ec916 (patch) | |
tree | 2636cf95622328b26a15b0c9281bcb67c1da93ca /ui/qt/simple_dialog.cpp | |
parent | 4ac4ab31a32fd58e7180ba086baaabc48bd5f4a9 (diff) |
Qt: Make text in SimpleDialog selectable by mouse
This makes it easier to copy error messages.
Change-Id: I39284d9b2d716336c6fc4b211e5346abcebf0aee
Reviewed-on: https://code.wireshark.org/review/21326
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/simple_dialog.cpp')
-rw-r--r-- | ui/qt/simple_dialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/simple_dialog.cpp b/ui/qt/simple_dialog.cpp index 6c1c7becfd..2de5a203ef 100644 --- a/ui/qt/simple_dialog.cpp +++ b/ui/qt/simple_dialog.cpp @@ -90,6 +90,7 @@ SimpleDialog::SimpleDialog(QWidget *parent, ESD_TYPE_E type, int btn_mask, const g_free(vmessage); setTextFormat(Qt::PlainText); + setTextInteractionFlags(Qt::TextSelectableByMouse); MessagePair msg_pair = splitMessage(message); // Remove leading and trailing whitespace along with excessive newline runs. |