Mercurial > hg > svgui
diff widgets/ImageDialog.cpp @ 378:22b72f0f6a4e
* More work to abstract out interactive components used in the data library,
so that it does not need to depend on QtGui.
author | Chris Cannam |
---|---|
date | Fri, 14 Mar 2008 17:14:21 +0000 |
parents | 832d246b327b |
children | 3228b7913aa4 |
line wrap: on
line diff
--- a/widgets/ImageDialog.cpp Thu Mar 13 14:06:03 2008 +0000 +++ b/widgets/ImageDialog.cpp Fri Mar 14 17:14:21 2008 +0000 @@ -26,8 +26,10 @@ #include <QUrl> #include <QMessageBox> +#include "ProgressDialog.h" + #include "data/fileio/FileSource.h" -#include "data/fileio/FileFinder.h" +#include "FileFinder.h" #include <iostream> @@ -186,7 +188,9 @@ tr("The URL scheme \"%1\" is not supported") .arg(url.scheme())); } else { - m_remoteFile = new FileSource(url, FileSource::ProgressDialog); + + ProgressDialog dialog(tr("Opening image URL..."), true, 2000); + m_remoteFile = new FileSource(url, &dialog); m_remoteFile->waitForData(); if (!m_remoteFile->isOK()) { QMessageBox::critical(this, tr("File download failed"),