forked from qt-creator/qt-creator
Allow QML profiling when using Qt Quick compiler
Change-Id: I40784b51e36c3c77fce6bf077613d19579336db6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This commit is contained in:
@@ -653,17 +653,18 @@ void QMakeStepConfigWidget::updateQmlDebuggingOption()
|
||||
{
|
||||
QString warningText;
|
||||
bool supported = QtSupport::BaseQtVersion::isQmlDebuggingSupported(m_step->target()->kit(),
|
||||
&warningText)
|
||||
&& !m_step->useQtQuickCompiler();
|
||||
&warningText);
|
||||
|
||||
m_ui->qmlDebuggingLibraryCheckBox->setEnabled(supported);
|
||||
m_ui->debuggingLibraryLabel->setText(tr("Enable QML debugging:"));
|
||||
m_ui->debuggingLibraryLabel->setText(tr("Enable QML debugging and profiling:"));
|
||||
|
||||
if (supported && m_step->linkQmlDebuggingLibrary())
|
||||
warningText = tr("Might make your application vulnerable. Only use in a safe environment.");
|
||||
|
||||
m_ui->qmlDebuggingWarningText->setText(warningText);
|
||||
m_ui->qmlDebuggingWarningIcon->setVisible(!warningText.isEmpty());
|
||||
|
||||
updateQtQuickCompilerOption(); // show or clear compiler warning text
|
||||
}
|
||||
|
||||
void QMakeStepConfigWidget::updateQtQuickCompilerOption()
|
||||
@@ -673,6 +674,10 @@ void QMakeStepConfigWidget::updateQtQuickCompilerOption()
|
||||
&warningText);
|
||||
m_ui->qtQuickCompilerCheckBox->setEnabled(supported);
|
||||
m_ui->qtQuickCompilerLabel->setText(tr("Enable Qt Quick Compiler:"));
|
||||
|
||||
if (supported && m_step->useQtQuickCompiler() && m_step->linkQmlDebuggingLibrary())
|
||||
warningText = tr("Disables QML debugging. QML profiling will still work.");
|
||||
|
||||
m_ui->qtQuickCompilerWarningText->setText(warningText);
|
||||
m_ui->qtQuickCompilerWarningIcon->setVisible(!warningText.isEmpty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user