diff options
author | Katja Marttila <katja.marttila@qt.io> | 2019-09-24 09:41:28 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2019-09-24 06:59:45 +0000 |
commit | a0647b7aa678ca95af421c1f4be85641954710e4 (patch) | |
tree | 67f14d6e6f6b92b3681b57a534aa480b2941922f | |
parent | 72fcd5fb2736b2b16478c6c6b3b561ab349af550 (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>
-rw-r--r-- | Changelog | 1 | ||||
-rw-r--r-- | src/libs/installer/componentselectionpage_p.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,7 @@ - Fix recalculation of components to install in MaintenanceTool (QTIFW-694) - Enable support for Qt 5.12. In Windows supported compilers are msvc2015 and msvc2017 (QTIFW-1312) - Set default file permissions to installer created files on Unix (QTIFW-1412) +- MacOS: Fix widget overlapping in componentselection page in MacOS 10.12 (QTIFW-1437) 3.1.1 - Add fetch to the same pane with package categories (QTIFW-1284) 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() |