Windowless border on metric refresh popup

This commit is contained in:
Mark Liversedge
2013-12-07 09:43:48 +00:00
parent 63032d9688
commit 1282bb5b8a

View File

@@ -161,6 +161,7 @@ void MetricAggregator::refreshMetrics(QDateTime forceAfterThisDate)
long elapsedtime = elapsed.elapsed();
if (elapsedtime > 6000 && bar == NULL) {
bar = new QProgressDialog(title, tr("Abort"), 0, filenames.count(), context->mainWindow);
bar->setWindowFlags(bar->windowFlags() | Qt::FramelessWindowHint);
bar->setWindowModality(Qt::WindowModal);
bar->setMinimumDuration(0);
bar->show(); // lets hide until elapsed time is > 6 seconds