tooltips implemented for charts (if using QWT) - except histogram
[sdk/tools/heaptrack.git] / src / analyze / gui / util.h
index 994a7fe..7f651a0 100644 (file)
@@ -20,8 +20,7 @@
 #define UTIL_H
 
 #include <qglobal.h>
-
-class QString;
+#include <QString>
 
 namespace Util {
 
@@ -29,6 +28,9 @@ QString formatTime(qint64 ms);
 
 QString formatByteSize(double size, int precision = 1);
 
+QString wrapLabel(QString label, int maxLineLength, int lastLineExtra = 0,
+                  const QString &delimiter = QString("<br>"));
+
 }
 
 #endif // UTIL_H