diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-02-25 01:21:46 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-02-25 01:23:33 +0100 |
commit | 9d4e840a6e1a7169a2863fa1ff1812f8fe19e615 (patch) | |
tree | 5de17defaea9b4fc237493f0d19c00a096c8205b /logic/screenshots/ScreenshotList.cpp | |
parent | cb5cfe724208beb7d506868fc4e50d9f13e28a53 (diff) | |
download | MultiMC-9d4e840a6e1a7169a2863fa1ff1812f8fe19e615.tar MultiMC-9d4e840a6e1a7169a2863fa1ff1812f8fe19e615.tar.gz MultiMC-9d4e840a6e1a7169a2863fa1ff1812f8fe19e615.tar.lz MultiMC-9d4e840a6e1a7169a2863fa1ff1812f8fe19e615.tar.xz MultiMC-9d4e840a6e1a7169a2863fa1ff1812f8fe19e615.zip |
Screenshots: Optimize image loading and memory use, fix list and button layout.
Diffstat (limited to 'logic/screenshots/ScreenshotList.cpp')
-rw-r--r-- | logic/screenshots/ScreenshotList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/screenshots/ScreenshotList.cpp b/logic/screenshots/ScreenshotList.cpp index def1bdf7..8a64dc36 100644 --- a/logic/screenshots/ScreenshotList.cpp +++ b/logic/screenshots/ScreenshotList.cpp @@ -25,7 +25,7 @@ QVariant ScreenshotList::data(const QModelIndex &index, int role) const switch (role) { case Qt::DecorationRole: - return QIcon(m_screenshots.at(index.row())->file); + return m_screenshots.at(index.row())->getImage(); case Qt::DisplayRole: return m_screenshots.at(index.row())->timestamp.toString("yyyy-MM-dd HH:mm:ss"); case Qt::ToolTipRole: @@ -80,6 +80,7 @@ void ScreenshotLoadTask::executeTask() m_list->loadShots(m_results); emitSucceeded(); } + void ScreenshotList::deleteSelected(ScreenshotDialog *dialog) { auto screens = dialog->selected(); |