QmlDesigner: Make error message selectable

There is no immediate solution for the status bar,
but texts from status bars are generally not selectable
and cannot be copied.

Task-number: QDS-518
Change-Id: Ide699c7ad26642ac716ab4ce7b315263d60facae
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-03-20 12:17:48 +01:00
parent 220ca90b3e
commit e91edfe34d

View File

@@ -62,6 +62,7 @@ DocumentWarningWidget::DocumentWarningWidget(QWidget *parent)
m_headerLabel->setFont(boldFont); m_headerLabel->setFont(boldFont);
m_messageLabel->setForegroundRole(QPalette::ToolTipText); m_messageLabel->setForegroundRole(QPalette::ToolTipText);
m_messageLabel->setWordWrap(true); m_messageLabel->setWordWrap(true);
m_messageLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
m_ignoreWarningsCheckBox->setText(tr("Always ignore these warnings about features " m_ignoreWarningsCheckBox->setText(tr("Always ignore these warnings about features "
"not supported by Qt Quick Designer.")); "not supported by Qt Quick Designer."));