]> git.lyx.org Git - features.git/commitdiff
move LyXerr QString specialisation to support/qstring_helpers
authorAbdelrazak Younes <younes@lyx.org>
Wed, 23 Jul 2008 09:21:22 +0000 (09:21 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 23 Jul 2008 09:21:22 +0000 (09:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25829 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/qt_helpers.cpp
src/frontends/qt4/qt_helpers.h
src/support/qstring_helpers.cpp
src/support/qstring_helpers.h

index fc9bf190e815b3bc00959513f2948390be0565de..395eb4edf92bf338cf0eb2a6e66cd88c360fecd4 100644 (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)
 {
index 66ec9e6f96958dfcbcc2a6e1fda7f2b6851ebdda..234ba0042662dec7fefd07da9274ce961226b1c0 100644 (file)
@@ -33,9 +33,6 @@ namespace lyx {
 namespace support { class FileName; }
 
 class BufferParams;
-class LyXErr;
-
-LyXErr & operator<<(LyXErr &, QString const &);
 
 namespace frontend {
 
index 2211af8e4ec1c36645e15cdc179e855dce3f6f18..5a79ad11b63e94fd5a3ce1ce65b7a3b41c91652b 100644 (file)
@@ -12,6 +12,9 @@
 
 #include <config.h>
 
+#include "support/qstring_helpers.h"\r
+\r
+#include "support/debug.h"\r
 #include "support/docstring.h"
 
 #include <QString>
 
 namespace lyx {
 
+LyXErr & operator<<(LyXErr & err, QString const & str)\r
+{\r
+       return err << fromqstr(str);\r
+}\r
+\r
+\r
 QString toqstr(char const * str)
 {
        return QString::fromUtf8(str);
index d5f2921af7a8ac617be2739664e8de71e8c06bb8..9c28092811ed9c980ff04f89c18ec0531a5a2efa 100644 (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
  *