From bf18f19b0aa38564afac5f0a63cfe43f56b9895e Mon Sep 17 00:00:00 2001 From: Antonio Maiorano Date: Wed, 3 Oct 2018 21:35:10 -0400 Subject: [PATCH] Make the progress dialog look better (used for e.g. shader compiling) * Removed the Cancel button since the code doesn't react to it anyway. * Only show a window title, not the help icon (?), and disable the close button * Set the title to "Dolphin" instead of repeating the label text --- Source/Core/DolphinQt/MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 56d68b5a30..6330fb7fcf 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -1473,13 +1473,14 @@ void MainWindow::OnUpdateProgressDialog(QString title, int progress, int total) { 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->setCancelButton(nullptr); + m_progress_dialog->setWindowTitle(tr("Dolphin")); } m_progress_dialog->setValue(progress); m_progress_dialog->setLabelText(title); - m_progress_dialog->setWindowTitle(title); m_progress_dialog->setMaximum(total); if (total < 0 || progress >= total)