forked from qt-creator/qt-creator
McuSupport: Hardcode the title of the groupbox
The main McuPackage does not provide a title anymore. It was removed in
df92e79da4.
Since then, the title was empty and the second group box showed a faulty
text. This change hardcodes the product name as it is not going to change
very often.
Task-number: QTCREATORBUG-28302
Change-Id: I6180579c9dce2f2f8aa939fb99088b4867d699fc
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -86,7 +86,7 @@ McuSupportOptionsWidget::McuSupportOptionsWidget(McuSupportOptions &options,
|
||||
}
|
||||
|
||||
{
|
||||
m_qtForMCUsSdkGroupBox = new QGroupBox(m_options.qtForMCUsSdkPackage->label());
|
||||
m_qtForMCUsSdkGroupBox = new QGroupBox(tr("Qt for MCUs SDK"));
|
||||
m_qtForMCUsSdkGroupBox->setFlat(true);
|
||||
auto *layout = new QVBoxLayout(m_qtForMCUsSdkGroupBox);
|
||||
layout->addWidget(m_options.qtForMCUsSdkPackage->widget());
|
||||
@@ -94,7 +94,8 @@ McuSupportOptionsWidget::McuSupportOptionsWidget(McuSupportOptions &options,
|
||||
}
|
||||
|
||||
{
|
||||
m_mcuTargetsGroupBox = new QGroupBox(tr("Supported targets"));
|
||||
m_mcuTargetsGroupBox = new QGroupBox(
|
||||
tr("Targets supported by the %1").arg(m_qtForMCUsSdkGroupBox->title()));
|
||||
m_mcuTargetsGroupBox->setFlat(true);
|
||||
mainLayout->addWidget(m_mcuTargetsGroupBox);
|
||||
m_mcuTargetsComboBox = new QComboBox;
|
||||
|
||||
Reference in New Issue
Block a user