src/format.h

changeset 1231
ce0c9f2e6b9c
parent 1222
34def2630300
--- a/src/format.h	Thu Jan 11 11:41:40 2018 +0200
+++ b/src/format.h	Thu Jan 11 15:09:44 2018 +0200
@@ -162,6 +162,12 @@
 }
 
 
+inline QString toString(const QSize& size)
+{
+	return toString(size.width()) + " × " + toString(size.height());
+}
+
+
 /*
  * Formats the message with the given args using QString::arg().
  */

mercurial