summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filepropertiesdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filepropertiesdialog.cpp b/filepropertiesdialog.cpp
index 14b8c8a..39c4466 100644
--- a/filepropertiesdialog.cpp
+++ b/filepropertiesdialog.cpp
@@ -144,7 +144,7 @@ void FilePropertiesDialog::pictureData(){
appendItem(QList<QVariant>() << tr("depth") << img.depth(), rootItem);
appendItem(QList<QVariant>() << tr("alpha channel") << (img.hasAlphaChannel() ? tr("yes") : tr("no")), rootItem);
appendItem(QList<QVariant>() << tr("qt format") << img.format(), rootItem);
- appendItem(QList<QVariant>() << tr("byte count") << img.byteCount(), rootItem);
+ appendItem(QList<QVariant>() << tr("byte count") << img.sizeInBytes(), rootItem);
mPicModel->setRoot(rootItem);
//now let's see if the file is already in the archive
@@ -163,7 +163,7 @@ void FilePropertiesDialog::pictureData(){
mArchivedAs->setText(tr("<center>File not found in Archive</center>"));
}else{
QString text = QString(tr("<p>Archived as:</p><ul>"));
- foreach(QString a, archived){
+ for(const QString &a : archived){
text.append(QString(tr("<li>%1</li>")).arg(a));
}
text.append("</ul>");