forked from qt-creator/qt-creator
Debugger: Make the text of error message box selectable
In some cases, it would be convenient if a text (e.g. a url) was selectable via mouse in order to be copied. Change-Id: Ifff27e10a70ee8efcae5073bfbe9225e39fb598f Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -2641,6 +2641,7 @@ QMessageBox *showMessageBox(int icon, const QString &title,
|
||||
title, text, QMessageBox::StandardButtons(buttons),
|
||||
ICore::mainWindow());
|
||||
mb->setAttribute(Qt::WA_DeleteOnClose);
|
||||
mb->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||
mb->show();
|
||||
return mb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user