summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/progressmanager
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2016-07-26 18:17:11 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2016-07-26 19:28:38 +0000
commit631cad8eb0543b0bff523b0c35face1bf590cb09 (patch)
treebcac9e8c9296bb1fe573ec3e31d3cbe9c31505aa /src/plugins/coreplugin/progressmanager
parent3e4cbdb69f44b233402e66fb6e1b6989de61c195 (diff)
downloadqt-creator-631cad8eb0543b0bff523b0c35face1bf590cb09.tar.gz
Core: Fix initially visible progress bar
Call updateVisibility() in ProgressManagerPrivate::init() to ensure that it is really invisible when launching Qt Creator. Also make sure that the opacity for the visible progress bar is 1.0 instead of 0.7 (which is the default opacity in QGraphicsOpacityEffect). Task-number: QTCREATORBUG-16003 Change-Id: Ic268d903ce624c9e0b4c11e213002a22be1fba63 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/progressmanager')
-rw-r--r--src/plugins/coreplugin/progressmanager/progressmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/progressmanager/progressmanager.cpp b/src/plugins/coreplugin/progressmanager/progressmanager.cpp
index 9254997c18..3b3c1cf6fc 100644
--- a/src/plugins/coreplugin/progressmanager/progressmanager.cpp
+++ b/src/plugins/coreplugin/progressmanager/progressmanager.cpp
@@ -273,6 +273,7 @@ ProgressManagerPrivate::ProgressManagerPrivate()
m_progressViewPinned(false),
m_hovered(false)
{
+ m_opacityEffect->setOpacity(1);
m_instance = this;
m_progressView = new ProgressView;
// withDelay, so the statusBarWidget has the chance to get the enter event
@@ -346,7 +347,7 @@ void ProgressManagerPrivate::init()
this, &ProgressManagerPrivate::progressDetailsToggled);
toggleButton->setDefaultAction(cmd->action());
- m_progressView->setVisible(m_progressViewPinned);
+ updateVisibility();
initInternal();
}