Mercurial > hg > svgui
diff layer/ImageLayer.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 | e1a9e478b7f2 |
children | 69089c9dc42e |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Thu Mar 13 14:06:03 2008 +0000 +++ b/layer/ImageLayer.cpp Fri Mar 14 17:14:21 2008 +0000 @@ -24,6 +24,7 @@ #include "data/fileio/FileSource.h" #include "widgets/ImageDialog.h" +#include "widgets/ProgressDialog.h" #include <QPainter> #include <QMouseEvent> @@ -912,7 +913,8 @@ return; } - FileSource *rf = new FileSource(img, FileSource::ProgressDialog); + ProgressDialog dialog(tr("Opening image URL..."), true, 2000); + FileSource *rf = new FileSource(img, &dialog); if (rf->isOK()) { std::cerr << "ok, adding it (local filename = " << rf->getLocalFilename().toStdString() << ")" << std::endl; m_remoteFiles[img] = rf;