Merge pull request #7453 from amaiorano/improve-progress-dialog

Make the progress dialog look better (used for e.g. shader compiling)
This commit is contained in:
Stenzek 2018-10-05 14:39:45 +10:00 committed by GitHub
commit 4ebf3f3189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1473,13 +1473,14 @@ void MainWindow::OnUpdateProgressDialog(QString title, int progress, int total)
{ {
if (!m_progress_dialog) if (!m_progress_dialog)
{ {
m_progress_dialog = new QProgressDialog(m_render_widget); m_progress_dialog = new QProgressDialog(m_render_widget, Qt::WindowTitleHint);
m_progress_dialog->show(); m_progress_dialog->show();
m_progress_dialog->setCancelButton(nullptr);
m_progress_dialog->setWindowTitle(tr("Dolphin"));
} }
m_progress_dialog->setValue(progress); m_progress_dialog->setValue(progress);
m_progress_dialog->setLabelText(title); m_progress_dialog->setLabelText(title);
m_progress_dialog->setWindowTitle(title);
m_progress_dialog->setMaximum(total); m_progress_dialog->setMaximum(total);
if (total < 0 || progress >= total) if (total < 0 || progress >= total)