--- infoscreen/pictureview.cpp 2010/04/07 17:00:07 638 +++ infoscreen/pictureview.cpp 2010/04/07 17:13:14 639 @@ -1,7 +1,7 @@ #include "pictureview.h" #include - +#include #include "httpwrapper.h" @@ -25,10 +25,15 @@ image = it.value(); this->repaint(); } else { - QByteArray data = HttpWrapper::getSyncData(source); + qDebug() << "Loading file " << source; QPixmap pixmap; - pixmap.loadFromData( data ); + if (source.at(0) == '/') { //local file + pixmap = QPixmap(source); + } else { + QByteArray data = HttpWrapper::getSyncData(source); + pixmap.loadFromData( data ); + } QPixmap scaledImage = pixmap.scaledToHeight(size().height(), Qt::SmoothTransformation );