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:
commit
4ebf3f3189
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue