forked from qt-creator/qt-creator
Utils: Separate rendering out of ProgressIndicator
I want to reuse the rendering of the progress indicator outside of a widget. Change-Id: Icaeeb798578ad838693b68556bf2193c4ba45cfa Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -97,7 +97,7 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
|
||||
m_progressIndicatorTimer.setSingleShot(true);
|
||||
m_progressIndicatorTimer.setInterval(50); // don't show progress for < 50ms tasks
|
||||
|
||||
m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicator::Large,
|
||||
m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicatorSize::Large,
|
||||
m_ui->treeView);
|
||||
m_progressIndicator->attachToWidget(m_ui->treeView->viewport());
|
||||
m_progressIndicator->hide();
|
||||
|
||||
Reference in New Issue
Block a user