#include <config.h>
-#include "support/docstring.h"
+#include "support/qstring_helpers.h"
+
+#include "support/debug.h"
#include "support/docstring.h"
#include <QString>
namespace lyx {
+LyXErr & operator<<(LyXErr & err, QString const & str)
+{
+ return err << fromqstr(str);
+}
+
+
QString toqstr(char const * str)
{
return QString::fromUtf8(str);
{
// If possible we let qt do the work, since this version does not
// need to be superfast.
+ if (ucs4.empty())
+ return QString();
return QString::fromUcs4((uint const *)ucs4.data(), ucs4.length());
}