summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/helper.cpp b/helper.cpp
index 348c066..7349b09 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -290,6 +290,15 @@ namespace Helper {
return retval.scaledToWidth(640);
}
+ 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()));
+ return retval;
+ }
+ return QVariant();
+ }
+
Duration::Duration() : mHours(0), mMinutes(0), mSeconds(0) {}
Duration::Duration(qint64 seconds){