#include "blackmisc/blackmiscexport.h"
#include "blackmisc/propertyindexlist.h"
-
//! Free functions in BlackMisc
namespace BlackMisc
{
@@ -29,12 +29,16 @@ namespace BlackMisc
QString rowHtml;
for (const CPropertyIndex &index : indexes)
{
- rowHtml += "| " + obj.propertyByIndex(index).toQString(true) + " | ";
+ rowHtml += QStringLiteral("") % obj.propertyByIndex(index).toQString(true) % QStringLiteral(" | ");
}
- html += "" + rowHtml + "
";
+ html += QStringLiteral("") % rowHtml % QStringLiteral("
");
}
- return "";
+ return QStringLiteral("") % html % QStringLiteral("
");
}
+
+ //! Values as HTML table
+ BLACKMISC_EXPORT QString toHtmTable(const QStringList &values, int columns);
+
} // ns
#endif // guard