summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2019-09-24 09:41:28 +0300
committerKatja Marttila <katja.marttila@qt.io>2019-09-24 06:59:45 +0000
commita0647b7aa678ca95af421c1f4be85641954710e4 (patch)
tree67f14d6e6f6b92b3681b57a534aa480b2941922f /src
parent72fcd5fb2736b2b16478c6c6b3b561ab349af550 (diff)
macOS: Fix widget overlapping in componentselection page in macOS 10.12
In componentselection page, calling setVisible(false) does not work in macOS 10.12 causing the treeview to be partly visible under the progressbar. Added repaint() call to cause immediate redraw to widget to fix the issue. Task-number: QTIFW-1437 Change-Id: I854d439908b8d8cd0f81076fced07a4d2d4bb6f2 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/libs/installer/componentselectionpage_p.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/installer/componentselectionpage_p.cpp b/src/libs/installer/componentselectionpage_p.cpp
index 84349e4ad..8c0cf2a11 100644
--- a/src/libs/installer/componentselectionpage_p.cpp
+++ b/src/libs/installer/componentselectionpage_p.cpp
@@ -397,6 +397,11 @@ void ComponentSelectionPagePrivate::updateWidgetVisibility(bool show)
if (QAbstractButton *bspButton = q->gui()->button(QWizard::CustomButton2))
bspButton->setEnabled(!show);
+
+ // In macOS 10.12 the widgets are not hidden if those are not updated immediately
+#ifdef Q_OS_MACOS
+ q->repaint();
+#endif
}
void ComponentSelectionPagePrivate::fetchRepositoryCategories()