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
This commit is contained in:
parent
58b0a284a8
commit
bf18f19b0a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue