QString toHtmlTable(const CPropertyIndexList &indexes, const Container &container)
+ {
+ if (indexes.isEmpty() || container.isEmpty()) { return ""; }
+ QString html;
+ for (const Obj &obj : container)
+ {
+ QString rowHtml;
+ for (const CPropertyIndex index : indexes)
+ {
+ rowHtml += "| " + obj.propertyByIndex(index).toQString(true) + " | ";
+ }
+ html += "" + rowHtml + "
";
+ }
+ return "";
+ }
+} // ns
+
+#endif // guard