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:
@@ -65,7 +65,7 @@ DiffEditorWidgetController::DiffEditorWidgetController(QWidget *diffEditorWidget
|
||||
void DiffEditorWidgetController::setDocument(DiffEditorDocument *document)
|
||||
{
|
||||
if (!m_progressIndicator) {
|
||||
m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicator::Large);
|
||||
m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicatorSize::Large);
|
||||
m_progressIndicator->attachToWidget(m_diffEditorWidget);
|
||||
m_progressIndicator->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user