Deleting screenshots. Needs fixing.

This commit is contained in:
robotbrain
2014-02-24 17:40:05 -05:00
parent da33fa4090
commit 55e21737dd
7 changed files with 56 additions and 7 deletions

View File

@ -52,7 +52,7 @@
<item>
<widget class="QPushButton" name="btnScreenshots">
<property name="text">
<string>Upload Screenshots</string>
<string>Manage Screenshots</string>
</property>
</widget>
</item>

View File

@ -532,7 +532,7 @@
</action>
<action name="actionScreenshots">
<property name="text">
<string>Upload Screenshots</string>
<string>Manage Screenshots</string>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;View and upload screenshots for this instance&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>

View File

@ -2,7 +2,7 @@
#include "ui_ScreenshotDialog.h"
#include <QModelIndex>
#include <QDebug>
#include <QMutableListIterator>
#include "ProgressDialog.h"
#include "CustomMessageBox.h"
@ -71,3 +71,8 @@ void ScreenshotDialog::on_uploadBtn_clicked()
reject();
}
}
void ScreenshotDialog::on_deleteBtn_clicked()
{
m_list->deleteSelected(this);
}

View File

@ -24,16 +24,17 @@ public:
};
QString message() const;
QList<ScreenShot *> selected() const;
private
slots:
void on_uploadBtn_clicked();
void on_deleteBtn_clicked();
private:
Ui::ScreenshotDialog *ui;
ScreenshotList *m_list;
QList<ScreenShot *> m_uploaded;
std::shared_ptr<ImgurAlbumCreation> m_imgurAlbum;
QList<ScreenShot *> selected() const;
};

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Screenshots</string>
<string>Screenshot Manager</string>
</property>
<property name="windowIcon">
<iconset resource="../../resources/multimc/multimc.qrc">
@ -72,6 +72,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="deleteBtn">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>