Add a slot to set the progress bar value and a member to hide it.