mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
d7fae16a3b
commit
c8a0b97d2e
@ -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)
|
||||
{
|
||||
|
@ -33,9 +33,6 @@ namespace lyx {
|
||||
namespace support { class FileName; }
|
||||
|
||||
class BufferParams;
|
||||
class LyXErr;
|
||||
|
||||
LyXErr & operator<<(LyXErr &, QString const &);
|
||||
|
||||
namespace frontend {
|
||||
|
||||
|
@ -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);
|
||||
|
@ -18,6 +18,10 @@ class QString;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class LyXErr;
|
||||
|
||||
LyXErr & operator<<(LyXErr &, QString const &);
|
||||
|
||||
/**
|
||||
* toqstr - convert a UTF8 encoded char * into a QString
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user