summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/helper.cpp b/helper.cpp
index cff490c..102e0f3 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -305,9 +305,9 @@ namespace Helper {
}
QVariant picSize(const QString &path){
- QPixmap pm(path);
- if(!pm.isNull()){
- QString retval = QString("%1x%2").arg(QString::number(pm.width())).arg(QString::number(pm.height()));
+ QImage img(path);
+ if(!img.isNull()){
+ QString retval = QString("%1x%2").arg(QString::number(img.width())).arg(QString::number(img.height()));
return retval;
}
return QVariant();