summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2019-01-09 08:43:51 +0200
committerKatja Marttila <katja.marttila@qt.io>2019-01-16 12:33:29 +0000
commit4ca310dc295e310df67ddb46437315179017d714 (patch)
treecfc8163c11f97cc6fad2f9a8d1df360e39f35aee
parent2f55dced317e7cb3cb7d69d8431bb277d51cbc62 (diff)
Fix Next button state in component selection view
Task-number: QTIFW-1261 Change-Id: Ied506e68d430eef94d482ee2390aa5a8acc3b36e Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
-rw-r--r--src/libs/installer/componentselectionpage_p.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/installer/componentselectionpage_p.cpp b/src/libs/installer/componentselectionpage_p.cpp
index 0e60788cc..1acc2ceb5 100644
--- a/src/libs/installer/componentselectionpage_p.cpp
+++ b/src/libs/installer/componentselectionpage_p.cpp
@@ -352,10 +352,15 @@ void ComponentSelectionPagePrivate::updateWidgetVisibility(bool show)
QSizePolicy::Expanding);
m_treeViewVLayout->addSpacerItem(verticalSpacer2);
m_mainHLayout->removeItem(m_descriptionVLayout);
+ //Hide next button during category fetch
+ QPushButton *const b = qobject_cast<QPushButton *>(q->gui()->button(QWizard::NextButton));
+ b->setEnabled(!show);
} else {
QSpacerItem *item = m_treeViewVLayout->spacerItem();
m_treeViewVLayout->removeItem(item);
m_mainHLayout->addLayout(m_descriptionVLayout, 2);
+ //Call completeChanged() to determine if NextButton should be shown or not after category fetch.
+ q->completeChanged();
}
if (m_categoryWidget)
m_categoryWidget->setDisabled(show);
@@ -368,8 +373,6 @@ void ComponentSelectionPagePrivate::updateWidgetVisibility(bool show)
m_uncheckAll->setVisible(!show);
m_descriptionLabel->setVisible(!show);
m_sizeLabel->setVisible(!show);
- QPushButton *const b = qobject_cast<QPushButton *>(q->gui()->button(QWizard::NextButton));
- b->setEnabled(!show);
if (QAbstractButton *bspButton = q->gui()->button(QWizard::CustomButton2))
bspButton->setEnabled(!show);