Mercurial > hg > svgui
diff widgets/ImageDialog.cpp @ 318:e9fe3923bdf4
* RemoteFile -> FileSource
now it's used all over the place for local files as well.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 16:20:26 +0000 |
parents | e251c3599ea8 |
children | 07aa52466142 |
line wrap: on
line diff
--- a/widgets/ImageDialog.cpp Thu Oct 18 15:31:20 2007 +0000 +++ b/widgets/ImageDialog.cpp Thu Oct 18 16:20:26 2007 +0000 @@ -26,7 +26,7 @@ #include <QUrl> #include <QMessageBox> -#include "data/fileio/RemoteFile.h" +#include "data/fileio/FileSource.h" #include "data/fileio/FileFinder.h" #include <iostream> @@ -179,14 +179,14 @@ delete m_remoteFile; m_remoteFile = 0; - if (RemoteFile::isRemote(fileName)) { + if (FileSource::isRemote(fileName)) { QUrl url(fileName); - if (!RemoteFile::canHandleScheme(url)) { + if (!FileSource::canHandleScheme(url)) { QMessageBox::critical(this, tr("Unsupported scheme in URL"), tr("The URL scheme \"%1\" is not supported") .arg(url.scheme())); } else { - m_remoteFile = new RemoteFile(url); + m_remoteFile = new FileSource(url); m_remoteFile->waitForData(); if (!m_remoteFile->isOK()) { QMessageBox::critical(this, tr("File download failed"),