return res;
}
-} // namespace anon
+} // namespace
namespace frontend {
}
+bool SortLocaleAware(QString const & lhs, QString const & rhs)
+{
+ return QString::localeAwareCompare(lhs, rhs) < 0;
+}
+
+
bool ColorSorter(ColorCode lhs, ColorCode rhs)
{
return compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
QTextDocument td("");
td.setHtml(text);
td.setDefaultFont(QToolTip::font());
+ td.setDocumentMargin(0);
td.setTextWidth(px_width);
double best_width = td.idealWidth();
// Set the line wrapping with appropriate width