From 45f6cd21a2c730b9dea322b0dba30120cdc40521 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 17 May 2013 20:44:40 +0200 Subject: - 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) --- src/modinfodialog.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/modinfodialog.cpp') 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::const_iterator current, end; + QList::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; } -- cgit v1.3.1