mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Set a minimum width for progress dialog
This commit is contained in:
parent
01ba1dfa4f
commit
921c1f606d
@ -200,7 +200,7 @@ namespace caf {
|
||||
currentUsageFraction = std::min(1.0f, static_cast<float>(currentUsage) / totalPhysicalMemory);
|
||||
}
|
||||
|
||||
QString labelText("\n ");
|
||||
QString labelText("\n");
|
||||
if (currentUsageFraction > 0.5)
|
||||
{
|
||||
labelText = QString("Memory Used: %1 MiB, Total Physical Memory: %2 MiB\n").arg(currentUsage).arg(totalPhysicalMemory);
|
||||
@ -221,6 +221,7 @@ namespace caf {
|
||||
progDialog->hide();
|
||||
progDialog->setAutoClose(false);
|
||||
progDialog->setAutoReset(false);
|
||||
progDialog->setMinimumWidth(400);
|
||||
}
|
||||
return progDialog;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user