diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-02-25 00:51:24 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-02-25 00:51:24 +0100 |
commit | cb5cfe724208beb7d506868fc4e50d9f13e28a53 (patch) | |
tree | 527bfd30ef74d5edef055ae6b4258dd2526162d8 /gui/dialogs/ScreenshotDialog.cpp | |
parent | b1cddb4600db2aa54c9d274466b393fc1e03eba9 (diff) | |
download | MultiMC-cb5cfe724208beb7d506868fc4e50d9f13e28a53.tar MultiMC-cb5cfe724208beb7d506868fc4e50d9f13e28a53.tar.gz MultiMC-cb5cfe724208beb7d506868fc4e50d9f13e28a53.tar.lz MultiMC-cb5cfe724208beb7d506868fc4e50d9f13e28a53.tar.xz MultiMC-cb5cfe724208beb7d506868fc4e50d9f13e28a53.zip |
Reorganize all the screenshot files
Diffstat (limited to 'gui/dialogs/ScreenshotDialog.cpp')
-rw-r--r-- | gui/dialogs/ScreenshotDialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gui/dialogs/ScreenshotDialog.cpp b/gui/dialogs/ScreenshotDialog.cpp index 76f87283..a88c8dfd 100644 --- a/gui/dialogs/ScreenshotDialog.cpp +++ b/gui/dialogs/ScreenshotDialog.cpp @@ -7,8 +7,8 @@ #include "ProgressDialog.h" #include "CustomMessageBox.h" #include "logic/net/NetJob.h" -#include "logic/net/ImgurUpload.h" -#include "logic/net/ImgurAlbumCreation.h" +#include "logic/screenshots/ImgurUpload.h" +#include "logic/screenshots/ImgurAlbumCreation.h" #include "logic/tasks/SequentialTask.h" ScreenshotDialog::ScreenshotDialog(ScreenshotList *list, QWidget *parent) @@ -30,10 +30,10 @@ QString ScreenshotDialog::message() const .arg(m_imgurAlbum->id(), m_imgurAlbum->deleteHash()); } -QList<ScreenShot *> ScreenshotDialog::selected() const +QList<ScreenshotPtr> ScreenshotDialog::selected() const { - QList<std::shared_ptr<ScreenShot>> list; - QList<std::shared_ptr<ScreenShot>> first = m_list->screenshots(); + QList<ScreenshotPtr> list; + QList<ScreenshotPtr> first = m_list->screenshots(); for (QModelIndex index : ui->listView->selectionModel()->selectedRows()) { list.append(first.at(index.row())); @@ -51,14 +51,14 @@ void ScreenshotDialog::on_uploadBtn_clicked() } SequentialTask *task = new SequentialTask(this); NetJob *job = new NetJob("Screenshot Upload"); - for (std::shared_ptr<ScreenShot> shot : m_uploaded) + for (auto shot : m_uploaded) { job->addNetAction(ImgurUpload::make(shot)); } NetJob *albumTask = new NetJob("Imgur Album Creation"); albumTask->addNetAction(m_imgurAlbum = ImgurAlbumCreation::make(m_uploaded)); - task->addTask(std::shared_ptr<NetJob>(job)); - task->addTask(std::shared_ptr<NetJob>(albumTask)); + task->addTask(NetJobPtr(job)); + task->addTask(NetJobPtr(albumTask)); ProgressDialog prog(this); if (prog.exec(task) == QDialog::Accepted) { |