summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-05-17 20:44:40 +0200
committerTannin <devnull@localhost>2013-05-17 20:44:40 +0200
commit45f6cd21a2c730b9dea322b0dba30120cdc40521 (patch)
treeb7e25a9265dc825107e846d8dd098113e0350f2f /src/modinfodialog.cpp
parentfc3753dcc5b7d55bf99674e7d17962f477053921 (diff)
- extended plugin interface to allow plugins access to download manager
- extended plugin interface to allow installation of mods from files - improved detection of online state - download tab now also displays files supported through plugins - batch installer now has basic functionality (downloads and installes files)
Diffstat (limited to 'src/modinfodialog.cpp')
-rw-r--r--src/modinfodialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp
index d1c37263..be3052af 100644
--- a/src/modinfodialog.cpp
+++ b/src/modinfodialog.cpp
@@ -781,21 +781,21 @@ void ModInfoDialog::modDetailsUpdated(bool success)
// prevent sorting while we change the table
filesWidget->setSortingEnabled(false);
int row = 0;
- QList<ModRepositoryFileInfo*>::const_iterator current, end;
+ QList<ModRepositoryFileInfo>::const_iterator current, end;
m_ModInfo->getNexusFiles(current, end);
for (; current != end; ++current) {
- ModRepositoryFileInfo *fileInfo = *current;
+ const ModRepositoryFileInfo &fileInfo = *current;
filesWidget->insertRow(row);
- int type = fileInfo->categoryID;
+ int type = fileInfo.categoryID;
filesWidget->setItem(row, 4, new QTableWidgetItem(QString("%1").arg(type)));
filesWidget->setItem(row, 0, new QTableWidgetItem(getFileCategory(type)));
- QTableWidgetItem *nameItem = new QTableWidgetItem(fileInfo->name);
- nameItem->setToolTip(fileInfo->description);
- nameItem->setData(Qt::UserRole, fileInfo->fileID);
+ QTableWidgetItem *nameItem = new QTableWidgetItem(fileInfo.name);
+ nameItem->setToolTip(fileInfo.description);
+ nameItem->setData(Qt::UserRole, fileInfo.fileID);
filesWidget->setItem(row, 1, nameItem);
- filesWidget->setItem(row, 2, new QTableWidgetItem(fileInfo->version.canonicalString()));
+ filesWidget->setItem(row, 2, new QTableWidgetItem(fileInfo.version.canonicalString()));
QTableWidgetItem *sizeItem = new QTableWidgetItem();
- sizeItem->setData(Qt::DisplayRole, fileInfo->fileSize);
+ sizeItem->setData(Qt::DisplayRole, fileInfo.fileSize);
filesWidget->setItem(row, 3, sizeItem);
++row;
}