From 4adf04c79fec078e5d8b3806a5f8e6a2c9c30eb1 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 21 Feb 2018 17:11:16 +0100 Subject: Work around Qt issue that setting 1.0 on opacity effect hides widget Issue in Qt 5.9.4 & 5.10.1. This should be reverted the moment that is fixed. Task-number: QTCREATORBUG-19716 Change-Id: I9ae187a43d0054f162491308d30b9a5b96465ec4 Reviewed-by: Alessandro Portale --- src/plugins/coreplugin/progressmanager/progressmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/coreplugin/progressmanager') diff --git a/src/plugins/coreplugin/progressmanager/progressmanager.cpp b/src/plugins/coreplugin/progressmanager/progressmanager.cpp index e583aa0c79..108899bc76 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager.cpp +++ b/src/plugins/coreplugin/progressmanager/progressmanager.cpp @@ -273,7 +273,7 @@ ProgressManagerPrivate::ProgressManagerPrivate() m_progressViewPinned(false), m_hovered(false) { - m_opacityEffect->setOpacity(1); + m_opacityEffect->setOpacity(.999); m_instance = this; m_progressView = new ProgressView; // withDelay, so the statusBarWidget has the chance to get the enter event @@ -543,7 +543,7 @@ void ProgressManagerPrivate::stopFadeOfSummaryProgress() { if (m_opacityAnimation) { m_opacityAnimation->stop(); - m_opacityEffect->setOpacity(1.); + m_opacityEffect->setOpacity(.999); delete m_opacityAnimation; } } @@ -689,7 +689,7 @@ void ProgressManagerPrivate::updateStatusDetailsWidget() void ProgressManagerPrivate::summaryProgressFinishedFading() { m_summaryProgressWidget->setVisible(false); - m_opacityEffect->setOpacity(1.); + m_opacityEffect->setOpacity(.999); } void ProgressManagerPrivate::progressDetailsToggled(bool checked) -- cgit v1.2.1