Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
arjide committed Nov 9, 2014
1 parent 197ce54 commit bd7ec65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Binary file added introduce/login.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions src/utility/downloadimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,6 @@ void DownloadImage::downloadFinished(QNetworkReply *replys)
qDebug()<<"DownloadImage:图片保存失败"<<file.errorString ();
error = SaveError;
}
/*if(format==".gif"){//如果是gif图
QFile file(imageName);
if(file.open (QIODevice::WriteOnly)){
file.write (temp);//储存图片
file.close ();
}else{
qDebug()<<"DownloadImage:图片保存失败"<<file.errorString ();
}
}else{
QImage image;
image.loadFromData(temp);
if( !image.save (imageName) ){
qDebug()<<"DownloadImage:图片保存失败,收到的网络数据是:"<<temp<<endl;
error = true;
}
}*/
}else{
error = DownloadError;
}
Expand Down

0 comments on commit bd7ec65

Please sign in to comment.