Close to finished. Need to fix the upload part. Viewing works (in grayscale)

This commit is contained in:
robotbrain
2014-02-23 19:45:59 -05:00
parent 4a77524b05
commit 5e33da258c
9 changed files with 53 additions and 134 deletions

View File

@ -1538,25 +1538,6 @@ void MainWindow::on_actionScreenshots_triggered()
void MainWindow::screenshotsUploaded(QList<ScreenShot *> screenshots)
{
NetJob *job2 = new NetJob("Screenshot Data");
for (ScreenShot *shot : screenshots)
{
job2->addNetAction(ScreenShotGet::make(shot));
}
ProgressDialog prog3(this);
prog3.exec(job2);
connect(job2, &NetJob::failed, [this]
{
CustomMessageBox::selectable(this, tr("Failed to upload screenshots!"),
tr("Unknown error"), QMessageBox::Warning)->exec();
});
connect(job2, &NetJob::succeeded, [this, screenshots]
{ screenShotsGotten(screenshots); });
}
void MainWindow::screenShotsGotten(QList<ScreenShot *> screenshots)
{
QStringList urls;
for (ScreenShot *shot : screenshots)
{