Add size to json listing.
This commit is contained in:
		@@ -89,6 +89,11 @@ QString BackupItem::getPath()
 | 
			
		||||
    return m_path;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QString BackupItem::getSize()
 | 
			
		||||
{
 | 
			
		||||
    return ui->sizeLabel->text();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void BackupItem::setItemIcon(const QString &path, int item_width, bool try_dds)
 | 
			
		||||
{
 | 
			
		||||
    ui->itemPicture->setMinimumWidth(item_width);
 | 
			
		||||
 
 | 
			
		||||
@@ -40,6 +40,7 @@ public:
 | 
			
		||||
    const QPixmap *getIconPixmap();
 | 
			
		||||
    int getIconWidth();
 | 
			
		||||
    QString getPath();
 | 
			
		||||
    QString getSize();
 | 
			
		||||
 | 
			
		||||
    static bool lessThan(const BackupItem *s1, const BackupItem *s2);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -68,6 +68,7 @@ void BackupManagerForm::saveListing()
 | 
			
		||||
        entry.insert("title", item->title);
 | 
			
		||||
        entry.insert("gameid", QFileInfo(item->getPath()).fileName());
 | 
			
		||||
        entry.insert("path", item->getPath());
 | 
			
		||||
        entry.insert("size", item->getSize());
 | 
			
		||||
 | 
			
		||||
        items.append(entry);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user