forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user