move LyXerr QString specialisation to support/qstring_helpers

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25829 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-23 09:21:22 +00:00
parent d7fae16a3b
commit c8a0b97d2e
4 changed files with 13 additions and 9 deletions

View File

@ -57,12 +57,6 @@ using namespace lyx::support;
namespace lyx {
LyXErr & operator<<(LyXErr & err, QString const & str)
{
return err << fromqstr(str);
}
FileName libFileSearch(QString const & dir, QString const & name,
QString const & ext)
{

View File

@ -33,9 +33,6 @@ namespace lyx {
namespace support { class FileName; }
class BufferParams;
class LyXErr;
LyXErr & operator<<(LyXErr &, QString const &);
namespace frontend {

View File

@ -12,6 +12,9 @@
#include <config.h>
#include "support/qstring_helpers.h"
#include "support/debug.h"
#include "support/docstring.h"
#include <QString>
@ -19,6 +22,12 @@
namespace lyx {
LyXErr & operator<<(LyXErr & err, QString const & str)
{
return err << fromqstr(str);
}
QString toqstr(char const * str)
{
return QString::fromUtf8(str);

View File

@ -18,6 +18,10 @@ class QString;
namespace lyx {
class LyXErr;
LyXErr & operator<<(LyXErr &, QString const &);
/**
* toqstr - convert a UTF8 encoded char * into a QString
*